Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
5aae844e
Commit
5aae844e
authored
8 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
Add an example log_config file
parent
d7457c76
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/example_log_config.yaml
+48
-0
48 additions, 0 deletions
contrib/example_log_config.yaml
with
48 additions
and
0 deletions
contrib/example_log_config.yaml
0 → 100644
+
48
−
0
View file @
5aae844e
# Example log_config file for synapse. To enable, point `log_config` to it in
# `homeserver.yaml`, and restart synapse.
#
# This configuration will produce similar results to the defaults within
# synapse, but can be edited to give more flexibility.
version
:
1
formatters
:
fmt
:
format
:
'
%(asctime)s
-
%(name)s
-
%(lineno)d
-
%(levelname)s
-
%(request)s-
%(message)s'
filters
:
context
:
()
:
synapse.util.logcontext.LoggingContextFilter
request
:
"
"
handlers
:
# example output to console
console
:
class
:
logging.StreamHandler
filters
:
[
context
]
# example output to file - to enable, edit 'root' config below.
file
:
class
:
logging.handlers.RotatingFileHandler
formatter
:
fmt
filename
:
/var/log/synapse/homeserver.log
maxBytes
:
100000000
backupCount
:
3
filters
:
[
context
]
root
:
level
:
INFO
handlers
:
[
console
]
# to use file handler instead, switch to [file]
loggers
:
synapse
:
level
:
INFO
synapse.storage
:
level
:
INFO
# example of enabling debugging for a component:
#
# synapse.federation.transport.server:
# level: DEBUG
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment