Webiik\Log\Log
Logging.
Available in private/config/resources.php
. Also inherits configuration from private/config/app.php
.
⚠️ In production, always set app
mode
toproduction
. In theproduction
mode, failed loggers don’t throw exceptions, but these exceptions are logged with other set loggers.
It is defined in private/config/container/services.php
. By default, the Log service is defined to utilize two loggers. The first logger to store logs in private/tmp/logs
. The second logger to optionally send error logs by email.
In route controller. Used by Error Service.
Read documentation to learn more about Log component.