MantisBT

View Issue Details Jump to Notes ] Related Changesets ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000210WebSolarLogBackendpublic2014-02-23 14:562014-02-23 16:53
Reportermdiphoorn 
Assigned Tomdiphoorn 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusassignedResolutionopen 
PlatformOSOS Version
Product VersionRelease 1.0.0 
Target VersionRelease 1.1.0Fixed in Version 
Summary0000210: Log rotation support
DescriptionWe 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.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000316)
dutchandre (reporter)
2014-02-23 15:15

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.
(0000318)
mdiphoorn (administrator)
2014-02-23 16:50
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!


- Issue History
Date Modified Username Field Change
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
Powered by Mantis Bugtracker