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.

how to make eggdrop create only 1 logfile for a channel

Old posts that have not been replied to for several years.
Locked
c
ciar
Voice
Posts: 4
Joined: Tue Feb 01, 2005 10:57 am
Location: Ireland
Contact:

how to make eggdrop create only 1 logfile for a channel

Post by ciar »

I apologise profusely if this has been asked before but:

How can you force eggdrop not to cycle logfiles once a day? As in just to keep logging a particular channel to one channel.log file?

Thanks a million in advance guys, ESPECIALLY if this has been asked before but I have searched high and low for this :cry:

Thank you!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Check the LOG FILES section in your eggdrop's conf file.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Hint: 'keep-all-logs' and do as all favor and read the comments available in the .conf file if you haven't found (as you say) a answer for your question.
Once the game is over, the king and the pawn go back in the same box.
c
ciar
Voice
Posts: 4
Joined: Tue Feb 01, 2005 10:57 am
Location: Ireland
Contact:

Post by ciar »

# If you want to keep your logfiles forever, turn this setting on. All
# logfiles will get suffix ".[day, 2 digits][month, 3 letters][year, 4 digits]".
# Note that your quota/hard-disk might be filled by this, so check your
# logfiles often and download them.
set keep-all-logs 0

# If keep-all-logs is 1, this setting will define the suffix of the logfiles.
# The default will result in a suffix like "04May2000". "%Y%m%d" will produce
# the often used yyyymmdd format. Read the strftime manpages for more options.
# NOTE: On systems which don't support strftime, the default format will
# be used _always_.
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
My question was not how to make it keep all logs.. it was how to get it to log to just ONE file.
From what I can see, this will cycle the log file, and hence you will have a seperate log file for every single day.

So hence I ask again if you will :( how do I get it to log to just one file? :cry:
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

This is better in my opinion, eventualy the file will become very large and you'll need to delete it. Thus, I find having a separate logfile for each day is better; anyways, if you want it to log into only one file then I'm sure a tcl script can do this task very well.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

##### LOG FILES #####

set max-logs 5
set max-logsize 0
set quick-logs 0

# This creates a logfile named eggdrop.log containing private msgs/ctcps,
# commands, errors, and misc. info from any channel.
logfile mbco * "logs/botnick.log"

# This creates a logfile named lamest.log containing joins, parts,
# netsplits, kicks, bans, mode changes, and public chat on the
# channel #lamest.
logfile jpk #lamest "logs/lamest.log"

set log-time 1
set keep-all-logs 0
set logfile-suffix ".%d%b%Y"
set switch-logfiles-at 300
set quiet-save 1
The above settings will give you two files (one for eggdrop & one for the channel). Every 24hrs both logs are moved to files with extention .yesterday. There are never more than 4 files.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
c
ciar
Voice
Posts: 4
Joined: Tue Feb 01, 2005 10:57 am
Location: Ireland
Contact:

Post by ciar »

This is better in my opinion, eventualy the file will become very large and you'll need to delete it. Thus, I find having a separate logfile for each day is better; anyways, if you want it to log into only one file then I'm sure a tcl script can do this task very well.
I guess i'll have to find a tcl script to do it then :(
Cos i'm trying to log to one file, as I'm logging an IRC channel and want to create stats from the log, hence it needs to be 1 single log file infinitly!

Thanks for the feedback anyway! :)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Then use these settings:
set max-logs 5
set max-logsize 0
set quick-logs 0

logfile mbco * "logs/lame.log"
logfile jpk #lame "stats/lame.log"

set log-time 1
set keep-all-logs 1
set logfile-suffix ".%d%b%Y"
set switch-logfiles-at 300
set quiet-save 1
.. and use pisg to pull it all together into one stats page for you. Too easy!
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

...or read doc/TRICKS
Have you ever read "The Manual"?
c
ciar
Voice
Posts: 4
Joined: Tue Feb 01, 2005 10:57 am
Location: Ireland
Contact:

Post by ciar »

user wrote:...or read doc/TRICKS

Code: Select all

 - If you don't want your logfiles to be deleted after two days and don't
    want the bot to create a new logfile each new day, then set 'keep-all-logs'
    to 0 and 'switch-logfiles-at' to 2500 in your bot's config file to make it
    keeping one logfile all the time. This is not recommended on high traffic
    channels.
user - u rock!
Alchera - thanks a mill, I am indeed using pisg for the stats, but "user"'s fix is supreme!! :)

thanks a mill everyone for the help & advice! :D
Locked