Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: rewording for clarity

...

See https://www.slf4j.org/api/org/slf4j/Logger.html and https://logback.qos.ch/manual/layouts.html#ClassicPatternLayout for their origins and use.

Logger Name

This indicates the origin of a log name of the logger that logged the message.

It is confusingly named, and since in Java logging it is normally given as a class or package name, it's more often referred to as the logger "class" or "package"In Java it is convention to name the logger after the class or package using that logger.

  • In Java, report the class or package name.
  • In Python, the class or source filename.

...

Think carefully about the information you report at each loglevellog level. The default log level is INFO.

Some loggers define non-standard levels, like FINE, FINER, WARNING, SEVERE, FATAL or CRITICAL. Use these judiciously, or avoid them.

Message

The freetext free text payload of a log event. 

This is the most important item of information in most log messages. See General guidelines.

...