Show TOC

Background documentationCommand Console Log Viewer Locate this document in the navigation structure

 

You can use the command console 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 Console Log Viewer lv script file is located in the /usr/sap/<System ID>/<Instance number>/j2ee/configtool directory.

Features

You can use the command console 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 console Log Viewer, from your local file system, go to the /usr/sap/<System ID>/<Instance number>/j2ee/ configtool directory 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 Note

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

    End of the note.
  • 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 console Log Viewer, execute the following command: lv -h.