The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.4.34 (Linux)
File Line Function
/showthread.php 802 errorHandler->error





Post Reply 
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?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Is it possible to quasi-rotate minimserver.log? - qblack - 30-10-2020 18:17

Forum Jump:


User(s) browsing this thread: 1 Guest(s)