Logging to STDOUT 5.x

With any systemd OS or when using containers, logging needs to go to STDOUT, not to a file. After much searching, I am still at a loss of how to do this with 5.X.

You can use a very simple logging configuration:

status = error

appender.console.type = Console
appender.console.name = console
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n

rootLogger.level = info
rootLogger.appenderRef.console.ref = console

Does that help?

That seems to have worked! The only other thing that needs to be done is remove the "quiet" option from ExecStart in the systemd service file.