The documentation states incorrectly that "Hello, World!" is printed when instead "Hello world!" is printed.
Signed-off-by: Wouter Born <github@maindrain.net>
```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).
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!
```
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).
```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/).
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!
```