|
Is it possible to quasi-rotate minimserver.log?
|
|
30-10-2020, 18:17
Post: #1
|
|||
|
|||
|
Is it possible to quasi-rotate minimserver.log?
Hi there,
Minimserver 0.8.5.3, Intel Synology NAS. Following this tip - https://forum.minimserver.com/showthread.php?tid=5197 - I am developing a wee program to list tracks played and offer them up for rating at leisure later. I'm essentially grepping GET /minimserver/...-type lines from the log. However, because this method relies on the Debug level of logging, the log file gets large very quickly. It seems that the log visible in MinimWatch is not strictly the one written to the default minimserver.log in the appData directory. If I try to 'prune' this latter log by discarding all lines up to the last GET statement, for example (I tried using sed), it is broken and fails to update thereafter, although the log in MinimWatch remains functional. If I simply delete minimserver.log, it is replaced and becomes functional upon restart. So I don't seem to be able to manipulate the logging file with a bash script without recourse to MinimWatch. If I upgrade to MinimServer 2, will this be possible? Are there any other ways to automate the occasional clearing or cleaning of the log file? |
|||
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
Is it possible to quasi-rotate minimserver.log? - qblack - 30-10-2020 18:17
RE: Is it possible to quasi-rotate minimserver.log? - simoncn - 30-10-2020, 23:09
RE: Is it possible to quasi-rotate minimserver.log? - qblack - 31-10-2020, 00:00
RE: Is it possible to quasi-rotate minimserver.log? - simoncn - 31-10-2020, 18:49
RE: Is it possible to quasi-rotate minimserver.log? - qblack - 01-11-2020, 14:22
RE: Is it possible to quasi-rotate minimserver.log? - qblack - 01-11-2020, 14:25
RE: Is it possible to quasi-rotate minimserver.log? - simoncn - 01-11-2020, 17:50
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help



