|Anonymous | Login | Signup for a new account||2019-08-18 03:09 CEST|
|Main | My View | View Issues | Change Log | Roadmap | | Repositories|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000210||WebSolarLog||Backend||public||2014-02-23 14:56||2014-02-23 16:53|
|Priority||normal||Severity||feature||Reproducibility||have not tried|
|Product Version||Release 1.0.0|
|Target Version||Release 1.1.0||Fixed in Version|
|Summary||0000210: Log rotation support|
|Description||We should create one log file "wsl.log" which contains all the log messages (info, debug, error, warn). In the admin the loglevel should be selectable. Also we should create an new log file every day, the old file should get an datestamp. "wsl.log.20140101"|
In the admin we should enable options for the logrotation like gzip the old files or max 14 files.
|Tags||No tags attached.|
Sorry for not reporting here.
I found a debug.log that was grown to 500MB, when this continues the sdcard could get full.
We already have a Dropbox connection for backups, may be the logs can go there.
edited on: 2014-02-23 16:53
No problem, i have experienced this problem with a full SD card en i know the mess :S So this was on my list already.
For now i have created a first version which is hard coded. What is changed?
There is only one actual logfile: wsl.log
When the file reaches 10MB (hard coded for now) it will start the rotation.
The file will be copied to an archive file. wsl.log.<date>.<time>.
If compression is enabled (it is hard coded to true) then it will gzip the file.
This code is in the trunk, but not finished yet.
Be aware that the old (error, info, debug) log files will NOT be deleted or compressed!
|2014-02-23 14:56||mdiphoorn||New Issue|
|2014-02-23 14:56||mdiphoorn||Status||new => assigned|
|2014-02-23 14:56||mdiphoorn||Assigned To||=> mdiphoorn|
|2014-02-23 15:15||dutchandre||Note Added: 0000316|
|2014-02-23 15:43||mdiphoorn||Changeset attached||=> SourceForge trunk r1669|
|2014-02-23 16:30||Changeset attached||=> SourceForge trunk r1671|
|2014-02-23 16:30||Changeset attached||=> SourceForge trunk r1672|
|2014-02-23 16:30||Changeset attached||=> SourceForge trunk r1673|
|2014-02-23 16:50||mdiphoorn||Note Added: 0000318|
|2014-02-23 16:53||mdiphoorn||Note Edited: 0000318||View Revisions|
|Copyright © 2000 - 2019 MantisBT Team|