This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Log Files

General support and discussion of Eggdrop bots.
Post Reply
I
Ido
Voice
Posts: 2
Joined: Mon Feb 06, 2006 4:03 pm

Log Files

Post by Ido »

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 :( :
logfile jpk #log "logs/log.log"
#set switch-logfiles-at 300
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

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
Ido
Voice
Posts: 2
Joined: Mon Feb 06, 2006 4:03 pm

Post by Ido »

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.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
s
silx
Voice
Posts: 13
Joined: Sat Feb 04, 2006 1:12 am

Post by silx »

i would also like this ability

1 log for 1 channel for more than a day
w
w1z4rd
Voice
Posts: 9
Joined: Fri Jul 28, 2006 6:53 am

Post by w1z4rd »

is there any way to stop this bot from rotating the logs? its darn annoying :(
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
w
w1z4rd
Voice
Posts: 9
Joined: Fri Jul 28, 2006 6:53 am

Post by w1z4rd »

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 :/
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
Post Reply