We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I know I can fully override the log component in config/app.php, but I'm wondering if it might be nice to have a method to simply add a log target.
log
config/app.php
Alternatively, there could be a method to get the default FileTarget configuration: https://github.com/craftcms/cms/blob/develop/src/config/app.php#L230-L262
Thoughts?
The text was updated successfully, but these errors were encountered:
0cd120a
Love it!
Sorry, something went wrong.
I’ve been meaning to make those dynamic component configs easier to modify, so using this as my excuse to do it.
As of the next release, you will be able to do this from config/app.php:
return [ 'components' => [ 'log' => function() { // Use the system's `log` config as a starting point $config = craft\helpers\App::logConfig(); if ($config === null) { return null; } // Make changes $config['targets'][] = [ // new log target config ]; // Instantiate and return the component return Craft::createObject($config); }, // ... ] ];
No branches or pull requests
I know I can fully override the
log
component inconfig/app.php
, but I'm wondering if it might be nice to have a method to simply add a log target.Alternatively, there could be a method to get the default FileTarget configuration: https://github.com/craftcms/cms/blob/develop/src/config/app.php#L230-L262
Thoughts?
The text was updated successfully, but these errors were encountered: