Log files are plain text files, containing rows of log activity, each row being a standalone activity formatted as specified in the logger's configuration.
With the logger configured in config/log.global.php.dist, log activities are formatted with JSON, so each row should be a decodable JSON string.
With that configuration, each row in a log file contains the following values:
error for errors logged by this packageconfig/error-handling.global.php.dist enables the trace providerFor example:
{"timestamp":"2026-11-11T16:05:23+00:00","level":3,"levelName":"error","message":"Something went wrong","context":{"file":"/path/to/some/class.php","line":24,"trace":["Path\\To\\Some\\Class->someMethod:24"]}}
By leveraging dot-errorhandler's extra providers, you can also log additional request parameters.
Learn more about what additional parameters are available on the extra data page.
For a clear separation between different types of logs, we recommend that you store files from each type in their own directory.