Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleSyntax
<logging>
  <log-file pattern="${logging.file}" append="true" ... />
</logging>

The logging <logging> element accepts the following attributes:

Attribute nameDescriptionAllowed valuesDefault
level

Specifies the global logging level for console

and file

logging.
In general there are logged just messages with the same or higher priority than the level specified.
The level SEVERE has the highest priority, FINEST the lowest one.

The value OFF mutes the output to the console.

OFF | SEVERE | WARNING | INFO | CONFIG | FINE | FINER | FINEST | ALL

INFO


The above definition of a <log-file> supports all configuration options of java.util.logging.FileHandler as attributes, in particular:

...