Previous Log Messages Next

Using a Pattern Layout

To use a pattern layout for a Service, the Log Layout property for that Service must be set to Pattern. See Log Layout for details of how to set this in the Administration Manager.

The format of the output message is customised by entering a pattern string in the Log Pattern property for the service. See Log Pattern.

For example, to prefix the date and time to the log messages generated by the Notification Service use the following pattern:

%d{DATE} - %m%n

It is recommended that %n is always appended to the end of any log pattern. This forces a line break at the end of each message and makes the log file easier to read.



Previous Log Messages Next