Information Management IBM InfoSphere Master Data Management, Version 10.1

ConversionPattern format specification

Within log4j.xml, the ConversionPattern parameter controls the contents of each line of the output inside of the log file.

Some of the most common parameters are listed in this table.

Table 1. Log ConversionPattern format codes
Conversion character Effect
%c Inserts the category of the log message.
%d Inserts the date and time. Depends on format supplied.
%i Inserts the thread ID. Unlike the thread name (indicated by %t), this is the numeric ID of the thread.
This parameter is particular to IBM® Initiate® Master Data Service, while the other parameters listed here are standard with log4j.
%m Inserts the log message itself.
%n Inserts the platform-dependent line separator.
%p Inserts the priority of the log message.
%s Inserts a full date and time stamp into the log file name. Include a period and number within the code to truncate the length of the date and time stamp. For example, to include only the date string in the file name, specify mad.log.name=MyLog-%.8s.mlg. Valid values for the length are 1 - 15.
%t Inserts the associated thread name.

Related concept

For more information about the format codes, see Suggested logging settings.

Related information

For more detail about the syntax of ConversionPattern, see: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html



Feedback

Timestamp Last updated: 14 Nov 2014

Topic URL: