| View previous topic :: View next topic |
| Author |
Message |
Ido Voice
Joined: 06 Feb 2006 Posts: 2
|
Posted: Mon Feb 06, 2006 4:14 pm Post subject: Log Files |
|
|
Hey ,
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 :
| Quote: |
logfile jpk #log "logs/log.log"
#set switch-logfiles-at 300
|
|
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Feb 06, 2006 8:58 pm Post subject: |
|
|
| Code: | 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 |
|
| Back to top |
|
 |
Ido Voice
Joined: 06 Feb 2006 Posts: 2
|
Posted: Tue Feb 07, 2006 7:14 am Post subject: |
|
|
Thank you Alchera,
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. |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Feb 07, 2006 8:41 pm Post subject: |
|
|
eggdrop will maintain separate files for each day of each month. They do not take up all that much room actually. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
silx Voice
Joined: 04 Feb 2006 Posts: 13
|
Posted: Wed Feb 22, 2006 10:16 am Post subject: |
|
|
i would also like this ability
1 log for 1 channel for more than a day |
|
| Back to top |
|
 |
w1z4rd Voice
Joined: 28 Jul 2006 Posts: 9
|
Posted: Sat Aug 12, 2006 12:42 pm Post subject: |
|
|
is there any way to stop this bot from rotating the logs? its darn annoying  |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Aug 12, 2006 1:00 pm Post subject: |
|
|
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 _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
w1z4rd Voice
Joined: 28 Jul 2006 Posts: 9
|
Posted: Sun Aug 13, 2006 8:18 pm Post subject: |
|
|
| 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 :/ |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Mon Aug 14, 2006 9:29 am Post subject: |
|
|
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]
edit: Minor rephrasing _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|