I need that my log files will not be replaced every day.
I need it to be logged to the same file ...
How can i set it ?
I tried to put a comment before this line but it's not working :
set max-logs 365
set max-logsize 0
set quick-logs 0
set raw-log 0
logfile mco * "logs/bot.log"
logfile jpk #chan "logs/chan.log"
# Use this feature to timestamp entries in the log file.
set log-time 1
# If you want to keep your logfiles forever, turn this setting on. All
set keep-all-logs 1
set logfile-suffix ".%d%b%Y"
# You can specify when Eggdrop should switch logfiles and start fresh. You
# must use military time for this setting. 300 is the default, and describes
# 03:00 (AM).
set switch-logfiles-at 300
The above will clean the logs once every 12 months.
Add [SOLVED] to the thread title if your issue has been. Search | FAQ | RTM
I dont want to keep all the logs in a different files , I need the bot would log all the time for the same file.
Is it possible ?
I need it for channel monthly statistic using Pisg (http://pisg.sourceforge.net) .
My solution for now is a script I wrote that doing someing like "exec { cat foo.log.yesterday >> bar.log }" every day at 03:00 AM , but that solution really sux , I am sure it can be set through the eggdrop.conf file.
An "evil" hack would be to set switch-logfiles-at to an invalid/impossible value.. 2500 or such (atleast, last time I checked, there were only 24 hours of the day)
edit: Actually think that trick is mentioned in the eggdrop docs
nml375 wrote:An "evil" hack would be to set switch-logfiles-at to an invalid/impossible value.. 2500 or such (atleast, last time I checked, there were only 24 hours of the day)
edit: Actually think that trick is mentioned in the eggdrop docs
I tried that. guys in the channel mentioned it. I think I have superbot, cause it still rotates the log files even when i set it at an illogical time :/
Just a silly question; you did remember to remove the # in front of "set switch-logs-at" ?
Might help if you could verify the value of that variable, as the bot runs (would require you to enable .set or .tcl however).
You also need to make sure keep-all-logs is not enabled.
Also worth noting, if you do not set an initial value to this variable, it will have a default value of 300 (rotate at 3am).[/u]