Small logging fixes and more inline comments to explain this feature in detail.
This commit is contained in:
parent
7806511884
commit
ec39acfb02
2 changed files with 4 additions and 4 deletions
|
|
@ -37,7 +37,7 @@ logger = logging.getLogger('linspector')
|
||||||
|
|
||||||
# i currently only increase the 3rd number because the goal is that 0.19.* will become the first
|
# i currently only increase the 3rd number because the goal is that 0.19.* will become the first
|
||||||
# stable version.
|
# stable version.
|
||||||
__version__ = '0.19.40.dev1'
|
__version__ = '0.19.41.dev1'
|
||||||
__author__ = 'Johannes Findeisen <you@hanez.org>'
|
__author__ = 'Johannes Findeisen <you@hanez.org>'
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -117,7 +117,7 @@ def main():
|
||||||
log_file_size_bytes = int(configuration.get_option('linspector',
|
log_file_size_bytes = int(configuration.get_option('linspector',
|
||||||
'log_file_size_bytes'))
|
'log_file_size_bytes'))
|
||||||
else:
|
else:
|
||||||
# default log file size is 10000000 bytes
|
# default log file size is 10000000 bytes (10MiB)
|
||||||
log_file_size_bytes = int(10000000)
|
log_file_size_bytes = int(10000000)
|
||||||
|
|
||||||
if configuration.get_option('linspector', 'log_file_count'):
|
if configuration.get_option('linspector', 'log_file_count'):
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ log_file = ~/code/linspector/linspector/log/linspector.log
|
||||||
; the size of the log file higher to increase the log history.
|
; the size of the log file higher to increase the log history.
|
||||||
log_file_count = 10
|
log_file_count = 10
|
||||||
; log file size in megabytes as int.
|
; log file size in megabytes as int.
|
||||||
log_file_size = 1
|
log_file_size = 5
|
||||||
; log file size in bytes as int. you can set to bytes if you want to set a value lower then 1 megabyte. but it will
|
; log file size in bytes as int. you can set to bytes if you want to set a value lower then 1 megabyte. but it will
|
||||||
; only be used when log_file_size is not set. the default is 1000000 (10MiB) in the code if not set here.
|
; only be used when log_file_size is not set. the default is 10000000 (10MiB) in the code if not set here.
|
||||||
log_file_size_bytes = 100000
|
log_file_size_bytes = 100000
|
||||||
pid_file = /var/run/user/1000/linspector.pid
|
pid_file = /var/run/user/1000/linspector.pid
|
||||||
; plugins separated by ','. no whitespaces allowed! not case sensitive.
|
; plugins separated by ','. no whitespaces allowed! not case sensitive.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue