Show TOC

Background documentationLog Types and Formats Locate this document in the navigation structure

 

The Log Viewer tool supports the following log types and formats:

Log Types

Log Formats

ListLog

List

ASCIILog

Text; Trace

SysLog

ABAP Sys Log

The log types and formats are predefined. You cannot configure them.

Note Note

The Message field in Log Viewer has maximum size of 64 KB.

End of the note.

Features

List Format

This is a standard human readable format that can be parsed and is used by the Log Viewer tool and AS Java. List formatted logs are written to a file and its values are separated by a hash (#). More information: List Log Format 2.0

There is a specific list formatted log file called Change Log. More information: Change Log

Text Format

This format is relevant for text log files and has random structure.

Example Example

  1. <!--LOGHEADER[START]/-->
    <!--HELP[Manual modification of the header may cause parsing problem!]/-->
    <!--LOGGINGVERSION[1.5.7.1006]/-->
    <!--NAME[D:\usr\sap\LKG\J00\work\deploy.trc]/-->
    <!--PATTERN[deploy.trc]/-->
    <!--FORMATTER[com.sap.tc.logging.TraceFormatter(%25d[%s] %m)]/-->
    <!--ENCODING[UTF8]/-->
    ... 
    <!--LOGHEADER[END]/-->
    Feb 24, 2009 12:48:16 PM [Info] [Server 00 00_37057] (11354):
    Deployment status of [sap.com_ATSFormalTestApplication365900472] was changed 
    from [Delivered] to [Success] [ASJ.dpl_dc.006301]...  
      Additional information:  
     [ASJ.dpl_dc.001048]
    ...
End of the code.
Trace Format

This format is the same as text format. However, it has a particular structure.

Example Example

  1. %24d %-40l [%t] %s: %m
End of the code.

where,

  • %d is a timestamp in a readable format.

  • %l is the location on behalf of which the message has been created.

  • %t is the thread that has emitted the message.

  • %s is the severity of the message.

  • %m is the message text.

The numbers in the pattern denote the number of characters for an item. The corresponding output is the following:

Output Output

  1. Dec 01, 2008 10:10:00 PM com.sap.FooClass.fooMethod [main]
    Fatal: A sample fatal message
End of the code.