Show TOC Start of Content Area

Background documentation Command Line Log Viewer  Locate the document in its SAP Library structure

Use

You can use the Command Line Log Viewer to display list formatted log and trace files that are written by the SAP Logging API in a human readable format.

The Command Line Log Viewer lv script file is located in the /usr/sap/<System ID>/<Instance number>/j2ee/configtool directory.

Features

You can use the Command Line Log Viewer to display:

      A single log or trace file

      All log and trace files from a log directory

      A particular number of log records from a log or trace file.

Activities

      To start the Command Line Log Viewer, in the file system, go to the /usr/sap/<System ID>/<Instance number>/j2ee/configtooldirectory and run the lv script file.

      To display a single log or trace file, execute the following command: lv <Full path to the file including the file name>.

      To display all log and trace files from a log directory, execute the following command: lv <Path to the directory>.

Note

You can use this command only if all logs and traces in the directory are list formatted.

      To display only the latest log records as they are written to a particular log or trace file, execute the following command: lv <Full path to the file including the file name> -t.

      To display all options that are available in the Command Line Log Viewer, execute the following command: lv –h.

 

 

End of Content Area