logs

Definition

To view the last log or trace messages from a logging destination of the SAP CC BART Server system

Command Usage

Syntax

logs (LDF1|LDF2|LDF3|LDF4|LDF5) [<COUNT> [<INST_TARGETS>...]] [<INST_TARGETS> ...]

Command Arguments
Name Description Interactive Question
LDF1 to LDF5 The identifier of the logging file destination Logging File Destination ID:
<COUNT> Optional: The number of messages to retrieve.
<INST_TARGETS> Optional: The target instances of the SAP CC system (instance IDs or instance types).

Detailed Information

The logs command retrieves a subset of the last log or trace messages from the SAP CC BART Server system.

The number of messages to be retrieved must be set as an argument. If no count is entered, the logs command returns the last 50 messages.

The detailed content and format of the messages depend on the configuration of the SAP CC BART Server system. The messages may include traces for advanced troubleshouting (debugging).

Note

Consult the SAP CC Log Message Reference to analyze the retrieved log and trace messages.

Authorization

You must have a specific role in your SAP CC user profile. Refer to the SAP CC Security Guide for more information about the necessary authorizations.

See Also

dump - To view the thread dump of the SAP CC BART Server system

Additional Information

Consult the SAP CC Configuration Guide and the SAP CC System Parameter Reference documentation for more information about the system configuration of the log and trace functions.

Message(s)

Code Message Action
err.bad_targets Error: Bad target: {target}.  
err.invalid_destination Error: The identifier of the logging file destination is invalid.  
err.invalid_max_count Error: Invalid count: {}.  
no.logs Error: The SAP CC system or system instance does not write its logs to a file.  
logs The {number} last messages are:  
zero.log No logs available