Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
ea3046ce
Commit
ea3046ce
authored
Jul 14, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added note about logger component in bootstrap
fixes #4301
parent
0a5894fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
runtime-logging.md
docs/guide/runtime-logging.md
+4
-0
No files found.
docs/guide/runtime-logging.md
View file @
ea3046ce
...
...
@@ -45,6 +45,7 @@ You may configure the targets in application configuration, like the following:
```
php
[
'bootstrap'
=>
[
'log'
],
// ensure logger gets loaded before application starts
'components'
=>
[
'log'
=>
[
'targets'
=>
[
...
...
@@ -80,6 +81,9 @@ Yii::$app->log->targets['file']->enabled = false;
When the application ends or [[yii\log\Logger::flushInterval|flushInterval]] is reached, Logger will call
[[yii\log\Logger::flush()|flush()]] to send logged messages to different log targets, such as file, email, web.
> Note: In the above confiuration we added the log component to the list of [bootstrap](runtime-bootstrapping.md) components that
get initialized when the application is initialized to ensure logging is enabled from the start.
Profiling
---------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment