@@ -63,7 +63,7 @@ severity levels and categories and then exports them to some medium. For example
...
@@ -63,7 +63,7 @@ severity levels and categories and then exports them to some medium. For example
exports the filtered log messages to a database table, while a [[yii\log\EmailTarget|email target]] exports
exports the filtered log messages to a database table, while a [[yii\log\EmailTarget|email target]] exports
the log messages to specified email addresses.
the log messages to specified email addresses.
You can register multiple log targets in an application by configuring them through the `log`application component
You can register multiple log targets in an application by configuring them through the `log`[application component](structure-application-components.md)
in the application configuration, like the following:
in the application configuration, like the following:
As can be seen in the code above, the console application uses its own configuration file, named `console.php`. In this file
As can be seen in the code above, the console application uses its own configuration file, named `console.php`. In this file
you should configure various application components and properties for the console application in particular.
you should configure various [application components](structure-application-components.md) and properties for the console application in particular.
If your web application and the console application share a lot of configuration parameters and values, you may consider moving the common
If your web application and the console application share a lot of configuration parameters and values, you may consider moving the common
parts into a separate file, and including this file in both of the application configurations (web and console). You can see an example of this in the "advanced" application template.
parts into a separate file, and including this file in both of the application configurations (web and console). You can see an example of this in the "advanced" application template.