]> git.basschouten.com Git - openhab-addons.git/commitdiff
Fix "Hello, World!" examples in automation documentation (#14041)
authorWouter Born <github@maindrain.net>
Thu, 22 Dec 2022 17:21:13 +0000 (18:21 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Dec 2022 17:21:13 +0000 (18:21 +0100)
The documentation states incorrectly that "Hello, World!" is printed when instead "Hello world!" is printed.

Signed-off-by: Wouter Born <github@maindrain.net>
bundles/org.openhab.automation.groovyscripting/README.md
bundles/org.openhab.automation.jrubyscripting/README.md
bundles/org.openhab.automation.jythonscripting/README.md

index 4704d83f9b1b3b593fe6d6fa3e09718b9a8813cf..997a01beff61ee18c197d3bca87471eef2246a38 100644 (file)
@@ -31,7 +31,7 @@ The openHAB server uses the [SLF4J](https://www.slf4j.org/) library for logging.
 ```groovy
 import org.slf4j.LoggerFactory
 
-LoggerFactory.getLogger("org.openhab.core.automation.examples").info("Hello world!")
+LoggerFactory.getLogger("org.openhab.core.automation.examples").info("Hello, World!")
 ```
 
 Depending on the openHAB logging configuration, you may need to prefix logger names with `org.openhab.core.automation` for them to show up in the log file (or you modify the logging configuration).
@@ -39,5 +39,5 @@ Depending on the openHAB logging configuration, you may need to prefix logger na
 The script uses the [LoggerFactory](https://www.slf4j.org/apidocs/org/slf4j/Logger.html) to obtain a named logger and then logs a message like:
 
 ```text
-    ... [INFO ] [.openhab.core.automation.examples:-2   ] - Hello world!
+    ... [INFO ] [.openhab.core.automation.examples:-2   ] - Hello, World!
 ```
index d57aafde3ac4ec2970d4f818f907be7ad288dd15..eef64fed313b3beeabeb006c5daf5b57971d0e48 100644 (file)
@@ -75,7 +75,7 @@ The openHAB server uses the [SLF4J](https://www.slf4j.org/) library for logging.
 require 'java'
 java_import org.slf4j.LoggerFactory
 
-LoggerFactory.getLogger("org.openhab.automation.examples").info("Hello world!")
+LoggerFactory.getLogger("org.openhab.automation.examples").info("Hello, World!")
 ```
 
 JRuby can [import Java classes](https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby).
index 5f6d8761558f8bf78547640d26eb785379ae1fe8..f124da39a2eda0c19bec37be7a072c9768877298 100644 (file)
@@ -34,7 +34,7 @@ The openHAB server uses the [SLF4J](https://www.slf4j.org/) library for logging.
 ```python
 from org.slf4j import LoggerFactory
 
-LoggerFactory.getLogger("org.openhab.core.automation.examples").info("Hello world!")
+LoggerFactory.getLogger("org.openhab.core.automation.examples").info("Hello, World!")
 ```
 
 Jython can [import Java classes](https://jython.readthedocs.io/en/latest/ModulesPackages/).
@@ -52,5 +52,5 @@ The script uses the [LoggerFactory](https://www.slf4j.org/apidocs/org/slf4j/Logg
 to obtain a named logger and then logs a message like:
 
 ```text
-    ... [INFO ] [.openhab.core.automation.examples:-2   ] - Hello world!
+    ... [INFO ] [.openhab.core.automation.examples:-2   ] - Hello, World!
 ```