Set log levels and read system logs
Raise or lower the log level of a server or client logger, and find its messages in the system log records.
Change a log level when you investigate a script, an integration or a platform service and need more detail, or less noise. This page is for administrators and developers.
Before you begin
- You need the
administratorrole to change log levels. Viewing logs needs theconfiguration_administratorrole. - Know the logger name. For a script, it is the name passed to
Logger(), as described in Logger. For a platform service, it is usually the fully qualified class name. - Lower the level again when you finish. Trace and Debug write many records.
Steps
-
Go to Administration → Logging & statistics → System log level and select New, or open the record for your logger.
-
In Source, enter the logger name.
-
Set Client logger to Yes if the source is a client-side logger, which records messages from the interface or client scripts. Leave it as No for a server-side logger.
-
In Level, select the lowest severity to record, then save. The levels are listed in the table below.
-
Reproduce the problem.
-
Go to Administration → Logging & statistics → System log records and filter on Source. Client logger messages are recorded here. Server logger messages are recorded here too [UNVERIFIED]. The list hides Trace records by default. Remove that filter to see them.
| Level | Records |
|---|---|
| Trace | Detailed diagnostics, and every level below. |
| Debug | Fine-grained debugging information, and every level below. |
| Info | Progress messages, warnings and errors. |
| Warn | Potential issues and errors. |
| Error | Errors only. |
Each log record shows its Date, Level, Source, Message, Server, Session and Transaction.
Result
The logger records messages at the level you chose and every more severe level. Records collect in the system log records, and the shipped “System log record cleanup” deletes them after seven days. Administration → Logging & statistics also holds the audit history, security logs, job requests and action results.