Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
95dd2aad
Commit
95dd2aad
authored
Jul 14, 2014
by
Carson Gee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3836 from mitocw/cg/add_default_logging
Adding django default log handlers into logging configuration
parents
57ec4024
cc083275
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
common/lib/logsettings.py
+15
-0
No files found.
common/lib/logsettings.py
View file @
95dd2aad
...
...
@@ -67,6 +67,11 @@ def get_logger_config(log_dir,
'syslog_format'
:
{
'format'
:
syslog_format
},
'raw'
:
{
'format'
:
'
%(message)
s'
},
},
'filters'
:
{
'require_debug_false'
:
{
'()'
:
'django.utils.log.RequireDebugFalse'
,
}
},
'handlers'
:
{
'console'
:
{
'level'
:
console_loglevel
,
...
...
@@ -74,6 +79,11 @@ def get_logger_config(log_dir,
'formatter'
:
'standard'
,
'stream'
:
sys
.
stderr
,
},
'mail_admins'
:
{
'level'
:
'ERROR'
,
'filters'
:
[
'require_debug_false'
],
'class'
:
'django.utils.log.AdminEmailHandler'
},
'syslogger-remote'
:
{
'level'
:
'INFO'
,
'class'
:
'logging.handlers.SysLogHandler'
,
...
...
@@ -97,6 +107,11 @@ def get_logger_config(log_dir,
'level'
:
'DEBUG'
,
'propagate'
:
False
},
'django.request'
:
{
'handlers'
:
[
'mail_admins'
],
'level'
:
'ERROR'
,
'propagate'
:
True
,
},
}
}
...
...
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