From 17b45ace02380fdff4f3064b7b0c4ae749ec6d03 Mon Sep 17 00:00:00 2001 From: Wouter Born Date: Thu, 22 Dec 2022 17:41:52 +0100 Subject: [PATCH] Fix "Hello, World!" examples in automation documentation The documentation states incorrectly that "Hello, World!" is printed when instead "Hello world!" is printed. Signed-off-by: Wouter Born --- bundles/org.openhab.automation.groovyscripting/README.md | 4 ++-- bundles/org.openhab.automation.jrubyscripting/README.md | 2 +- bundles/org.openhab.automation.jythonscripting/README.md | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bundles/org.openhab.automation.groovyscripting/README.md b/bundles/org.openhab.automation.groovyscripting/README.md index 4704d83f9b1b3..997a01beff61e 100644 --- a/bundles/org.openhab.automation.groovyscripting/README.md +++ b/bundles/org.openhab.automation.groovyscripting/README.md @@ -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! ``` diff --git a/bundles/org.openhab.automation.jrubyscripting/README.md b/bundles/org.openhab.automation.jrubyscripting/README.md index d57aafde3ac4e..eef64fed313b3 100644 --- a/bundles/org.openhab.automation.jrubyscripting/README.md +++ b/bundles/org.openhab.automation.jrubyscripting/README.md @@ -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). diff --git a/bundles/org.openhab.automation.jythonscripting/README.md b/bundles/org.openhab.automation.jythonscripting/README.md index 5f6d8761558f8..f124da39a2eda 100644 --- a/bundles/org.openhab.automation.jythonscripting/README.md +++ b/bundles/org.openhab.automation.jythonscripting/README.md @@ -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! ```