I'd like to have a log file that contains all entries of the last 72 Hours. Automatically trimmed. Is that possible ?
Alternativ a "maximum log size" with "rollover-option" would help.
At the moment I use "maximum log size 20 MB" and "clear log and start over".
Problem: After start over the log is empty. And that just happens 5 minutes before I need the infos.
Logging Configuration: Keep last xx hours in logfile
>I'd like to have a log file that contains all entries of the last 72 Hours. Automatically trimmed. Is that possible ?
Its very bad for performance. In this case HostMonitor will need to rewrite whole log file every time new record added (after 72 hours).
>Alternativ a "maximum log size" with "rollover-option" would help.
Possible solution: maintain log till "maximum log size" and then cut log to half of its size (keep most recent records of course).
I have added this task into to do list.
Regards
Alex
Its very bad for performance. In this case HostMonitor will need to rewrite whole log file every time new record added (after 72 hours).
>Alternativ a "maximum log size" with "rollover-option" would help.
Possible solution: maintain log till "maximum log size" and then cut log to half of its size (keep most recent records of course).
I have added this task into to do list.
Regards
Alex
Thank you. That will be a good solution for me.Alex wrote:
Possible solution: maintain log till "maximum log size" and then cut log to half of its size (keep most recent records of course).
I have added this task into to do list.
Other possibility:
"Automatically change the name every day"
and a new option: Keep x days (to automatically trim the number of files)
Juergen
>It looks like the only chance to have this funktion is to use a batch file, or is there a way with HM?
No, HostMonitor cannot do that. And I am not sure it will be implemented because HostMonitor knows about current log file only. During a month you may change log settings several times and use different names for log files and so on...
Regards
Alex
No, HostMonitor cannot do that. And I am not sure it will be implemented because HostMonitor knows about current log file only. During a month you may change log settings several times and use different names for log files and so on...
Regards
Alex