Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sbws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
juga
sbws
Commits
c0f76f21
Commit
c0f76f21
authored
6 years ago
by
juga
Browse files
Options
Downloads
Plain Diff
Merge branch 'bug28761'
parents
cd61cb3c
0632a250
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/source/examples/sbws.example.ini
+28
-0
28 additions, 0 deletions
docs/source/examples/sbws.example.ini
docs/source/man_sbws.ini.rst
+2
-0
2 additions, 0 deletions
docs/source/man_sbws.ini.rst
sbws/config.default.ini
+10
-7
10 additions, 7 deletions
sbws/config.default.ini
with
40 additions
and
7 deletions
docs/source/examples/sbws.example.ini
+
28
−
0
View file @
c0f76f21
...
...
@@ -10,3 +10,31 @@ foo = on
[destinations.foo]
# the domain and path to the 1GB file.
url
=
https://example.com/does/not/exist.bin
## The following logging options are set by default.
## There is no need to change them unless other options are prefered.
; [logging]
; # Whether or not to log to a rotating file the directory paths.log_dname
; to_file = yes
; # Whether or not to log to stdout
; to_stdout = yes
; # Whether or not to log to syslog
; # NOTE that when sbws is launched by systemd, stdout goes to journal and
; # syslog.
; to_syslog = no
; # Level to log at. Debug, info, warning, error, critical.
; # `level` must be set to the lower of all the handler levels.
; level = debug
; to_file_level = debug
; to_stdout_level = info
; to_syslog_level = info
; # Format string to use when logging
; format = %(module)s[%(process)s]: <%(levelname)s> %(message)s
; # verbose formatter useful for debugging
; to_file_format = %(asctime)s %(levelname)s %(threadName)s %(filename)s:%(lineno)s - %(funcName)s - %(message)s
; # Not adding %(asctime)s to to stdout since it'll go to syslog when using
; # systemd, and it'll have already the date.
; to_stdout_format = ${format}
;
to_syslog_format
=
${format}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docs/source/man_sbws.ini.rst
+
2
−
0
View file @
c0f76f21
...
...
@@ -139,6 +139,8 @@ logging
Whether or not to log to stdout. (Default: yes)
to_syslog = {yes, no}
Whether or not to log to syslog. (Default: no)
NOTE that when sbws is launched by systemd, stdout goes to journal and
syslog.
to_file_max_bytes = INT
If logging to file, how large (in bytes) should the file be allowed to get
before rotating to a new one. 10485760 is 10 MiB. If zero or number of
...
...
This diff is collapsed.
Click to expand it.
sbws/config.default.ini
+
10
−
7
View file @
c0f76f21
...
...
@@ -94,10 +94,12 @@ min_relays = 50
[logging]
# Whether or not to log to a rotating file the directory paths.log_dname
to_file
=
no
to_file
=
yes
# Whether or not to log to stdout
to_stdout
=
yes
# Whether or not to log to syslog
# NOTE that when sbws is launched by systemd, stdout goes to journal and
# syslog.
to_syslog
=
no
# If logging to file, how large (in bytes) should the file be allowed to get
# before rotating to a new one. 10485760 is 10 MiB. If zero or number of
...
...
@@ -107,14 +109,15 @@ to_file_max_bytes = 10485760
# never rotate the log file.
to_file_num_backups
=
50
# Level to log at. Debug, info, warning, error, critical.
level
=
info
to_file_level
=
${level}
to_stdout_level
=
${level}
to_syslog_level
=
${level}
# `level` must be set to the lower of all the handler levels.
level
=
debug
to_file_level
=
debug
to_stdout_level
=
info
to_syslog_level
=
info
# Format string to use when logging
format
=
%(asctime)s %(module)s[%(process)s]: <%(levelname)s> %(message)s
to_file_format
=
${format}
to_stdout_format
=
${format}
to_syslog_format
=
%(module)s[%(process)s]: <%(levelname)s> %(message)s
# verbose formatter useful for debugging
#format = %(asctime)s %(levelname)s %(threadName)s %(filename)s:%(lineno)s - %(funcName)s - %(message)s
to_file_format
=
%(asctime)s %(levelname)s %(threadName)s %(filename)s:%(lineno)s - %(funcName)s - %(message)s
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