Logging

Logging

Scout logs internal activity via a configured Psr\Log\LoggerInterface. The Laravel instruments automatically wire up the framework’s logger to the agent’s logging.

If required, you can override this by changing the container service log.

Scout’s logging defaults to the same log level as the LoggerInterface provided, but that can be set to a stricter level to quiet the agent’s logging via the log_level configuration. The underlying LoggerInterface’s level will take precedence if it is tighter than the log_level configuration.

Log Levels

The possible log levels are as follows:

Debug Logs

To set Scout’s log level to debug, set the log_level configuration to debug.

Scout’s log level defaults to the same log level as the LoggerInterface provided, if you aren’t seeing debug log levels from Scout, you will need to lower your LoggerInterface’s log level as well.