Show TOC

Appendix C: Default Behavior of Certain ObjectsLocate this document in the navigation structure

Use

Default Attributes Values

Class

Attribute

Default Value

Description

LogController

Severity

Severity.NONE

No output at all.

MinSeverity

Severity.ALL

No floor restriction: output all.

MaxSeverity

Severity.NONE

No ceiling restriction: output nothing.

<output logs>

<none>

No output at all.

<filters>

<none>

No further filtering.

Log

Severity

Severity.ALL

Do not further suppress messages.

<filters>

<none>

No further filtering.

ConsoleLog

Formatter

TraceFormatter

FileLog

Formatter

ListFormatter

Limit

0

No file size limit. 'Count' must == 0. No rotating set of numbered files.

Count

0

Log file name generated without a sequence number.

TraceFormatter

Pattern

%24d %-40l [%t] %s: %m

Example:

J an 01, 2001 10:10:00 PM

com.sapmarkets.FooClass.fooMethod [main] Fatal: A sample fatal message

ListFormatter

Pattern

Example:

#1.3#10.48.27.165:4A5AB2:E99D42D4F4:-8000#

Mon Jan 01 22:00:00 PDT 2001#

com.sapmarkets.FooClass#

com.sapmarkets.FooClass. fooMethod#main##0#0#

Fatal##Plain###A sample fatal message#

XMLFormatter

Pattern

<!ELEMENT log (record*)><!ELEMENT table (id, time, source, severity, location, thread, msg-type, msg-code?, bundle?, msg-clear?, args?)><!ELEMENT id (#PCDATA)><!ELEMENT time (#PCDATA)><!ELEMENT source (#PCDATA)><!ELEMENT severity (#PCDATA)><!ELEMENT location (#PCDATA)><!ELEMENT thread (#PCDATA)><!ELEMENT msg-type (#PCDATA)><!ELEMENT msg-code (#PCDATA)><!ELEMENT bundle (#PCDATA)><!ELEMENT msg-clear (#PCDATA)><!ELEMENT args (arg+)><!ELEMENT arg (#PCDATA)>

Example:

<record> <id>10.48.27.165:4A5AB2:E99D2EDAFF: -8000</id> <time>Mon Jan 01 22:00:00 PDT 2001 </time> <source>com.sapmarkets.FooClass</source> <location>com.sapmarkets.FooClass.fooMethod </location> <thread>main</thread> <severity>Fatal</severity> <msg-type>Plain</msg-type> <msg-clear>A sample fatal message</msg-clear> </record>

Highlights of Default Behavior

Class

Property

Default Value

Description

Location

root name

""

Empty string. Full name should be hierarchical, delimited by "." .

Category

root name

"/"

Similar to root directory. Full name should be hierarchical, delimited by "/".

FileLog

Filename, with size limit and count

<filename>.cnt.<ext>

For example: trace.0.log, trace.1.log

Trace

Filename, if not specified by user

%t/trace.log

For example, C:\temp\trace.log .

TraceFormatter

Message displayed

Content of 'MsgClear' in any case.

Either translated text in ' MsgClear ' or text provided by users explicitly in ' MsgClear '.

ListFormatter

Message displayed

Optional

Both MsgCode & MsgClear available, up to the viewer.

XMLFormatter

Message displayed

Optional

Both MsgCode & MsgClear available, up to the viewer.

Location or Category with relative 'A'

OutputBehavior by relative

Nothing is output by relative 'A'.

Relative 'A' unaffected, and still has default Severity.NONE and no output destination.

Only when explicit configuration is done on relative 'A', the output is generated by it.