Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007 Installation Manual page 266

Table of Contents

Advertisement

Option
\t
\r
\\
\x<hexDigits>
It is possible to change the minimum field width, the maximum field width, and justifi-
cation. The optional format modifier is placed between the percent sign (%) and the
conversion character. The first optional format modifier is the left justification flag,
which is the minus (-) character. The optional minimum field width modifier follows,
which is an integer that represents the minimum number of characters to output. If the
data item requires fewer characters, it is padded with spaces on either the left or the
right, according to the justification flag. If the data item is larger than the minimum
field width, the field is expanded to accommodate the data.
The maximum field width modifier is designated by a period (.) followed by a decimal
constant. If the data item is longer than the maximum field, then the extra characters
are removed from the beginning of the data item (by default) or from the end (if the
left justification flag was specified).
Examples
Log4j TTCC layout:
"%r [%t] %-5p %c - %m"
Similar to TTCC but with some fixed-size fields:
"%-6r [%15.15t] %-5p %30.30c - %m"
XML output conforming to log4j.dtd 1.2, which can be processed by Chainsaw (if used,
this must be on one line; it is split up here for readability):
"<log4j:event logger="%c" timestamp="%d{%s%Q}" level="%p"
thread="%t"> <log4j:message>%e</log4j:message>
248
Installation and Administration
Specifies
Tab
Line feed
\
Character represented in hexadecimal

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents