egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Log Files

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Ido
Voice


Joined: 06 Feb 2006
Posts: 2

PostPosted: Mon Feb 06, 2006 4:14 pm    Post subject: Log Files Reply with quote

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 Sad :
Quote:

logfile jpk #log "logs/log.log"
#set switch-logfiles-at 300
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Feb 06, 2006 8:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ido
Voice


Joined: 06 Feb 2006
Posts: 2

PostPosted: Tue Feb 07, 2006 7:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Feb 07, 2006 8:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
silx
Voice


Joined: 04 Feb 2006
Posts: 13

PostPosted: Wed Feb 22, 2006 10:16 am    Post subject: Reply with quote

i would also like this ability

1 log for 1 channel for more than a day
Back to top
View user's profile Send private message
w1z4rd
Voice


Joined: 28 Jul 2006
Posts: 9

PostPosted: Sat Aug 12, 2006 12:42 pm    Post subject: Reply with quote

is there any way to stop this bot from rotating the logs? its darn annoying Sad
Back to top
View user's profile Send private message AIM Address
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Aug 12, 2006 1:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
w1z4rd
Voice


Joined: 28 Jul 2006
Posts: 9

PostPosted: Sun Aug 13, 2006 8:18 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Aug 14, 2006 9:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber