Log Types and Formats
The Log Viewer supports the following log types:
● ListLog
● ASCIILog
● SQLTrace
● SAPJTrace
● SAT Trace.

You cannot configure the log types.
You can configure the format in which log files are generated using the Log Configurator. For more information, see Adding, Editing, and Removing Log Formatters. The Log Viewer supports the following log formats:
● List
● ASCII
● SQL Trace
● Trace
● SAT Trace.
This is the standard format that can be parsed and that is used by the Log Viewer and the J2EE Engine. List formatted logs are written to a file whose values are separated by a hash (#). For example:
#1.3#10.48.27.165:4A5AB2:E99D42D4F4:-8000#Mon Dec 01 22:00:00 PDT 2003#com.sap.FooClass#com.sap.FooClass.fooMethod#main##0#0#Fatal##Plain###A sample fatal message |
A log file in ASCII format is any text file with no particular format.
The following is an example of a log file in SQL Trace format:
<log> <record> <id>10.18.200.95:15A3A233:F2BD30CE2B:-73F8</id> <thread>Thread-58</thread> <msg-clear>DELETE FROM "J2EE_CONFIGENTRY" WHERE "CID" = ? AND "ISFILE" = 0</msg-clear> <bindparams> <param>-9223372036854774826</param> </bindparams> <pstmtid>269705776</pstmtid> <result>-2</result> <starttime>1042557073841</starttime> <duration>6467</duration> <dbid>jdbc:sap:sapdb://lw1021/JAVA?timeout=0?DEV1401</dbid> <location>com.sap.sql.jdbc.direct.DirectPreparedStatement.executeBatch</location> </record> </log> |
For more information, see SQL Trace.
This format is the same as the ASCII format. However, a log file in trace format is a text file with a particular format. The format is defined by a pattern. You can specify a pattern using the Log Configurator. For more information, see Adding, Editing, and Removing Log Destinations.
By default, the pattern for a trace formatted message is the following:
%24d %-40l [%t] %s: %m |
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:
Dec 01, 2003 10:10:00 PM com.sap.FooClass.fooMethod [main] Fatal: A sample fatal message |
The single activity trace (SAT) log files are similar to list formatted log files. When you display an SAT trace formatted file, the whole file is read because SAT records appear in a certain order. The following types of records exist for the SAT:
● Java Application Response Time Measurement (JARM) request
● JARM component
● JARM action.
For more information, see Single Activity Trace and Java Application Response Time Measurement.