Logging

Overview

The three types of logging are the standard log, the P4AUDIT log, and the structured logs.

Standard log

By default, P4 Server events are written to a log file. The location of the log can be changed with the P4LOG environment variable. The standard log is designed to be human readable. To learn more, see Using P4LOG.

P4AUDIT log

If the P4AUDIT environment variable is set, the audit log records each occurrence in which each user access an archive file Versioned files that users submitted to a depot. with a command such as p4 sync or p4 diff. To learn more, see Auditing user file access.

Structured logs

Unlike the standard log, the structured logs are in a structured format, such as .csv, contain more details than the standard log, and are typically interpreted with the aid of tools for data analysis. To learn more, see Structured logs.

In this section: