Logging
These settings help with overall logging but also debugging level of logging. For things like Ray
and what adapter to use when saving logs.
Defaults:
'logging' => [
'useRay' => true,
'loggerName' => 'sailcms',
'database' => false,
'adapters' => [
\SailCMS\Logging\Database::class
],
'datadog' => [
'api_key_identifier' => 'DD_DEFAULT_KEY'
],
'minLevel' => \Monolog\Level::Debug,
'bubble' => true
]
ray
Whether to allow the use of the ray library and application or not.
loggerName
The name that appears in the logs
database
Flag that determines if we actually log things or not. This affects the log
method. That is a way to disable all logs without removing any log calls from your code.
adapters
The adapters to use, you can use more than one at a time. SailCMS offers Database
, Local
and Datadog
out of the box.
Database
stores in the database. Local
stores in a local file. Datadog
sends to the Datadog service.
datadog
The Datadog credentials, if used.
minLevel
Sets the minimum level that triggers the logging system. Let's say you set it to Critical
, that means that every log that is below that level will not be logged. That means that you could have debugging logs everywhere and in production you could tell the logger not log them unless they are the required level.
bubble
This enables event bubbling.