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.

channel loggin

Old posts that have not been replied to for several years.
Locked
M
MasterJM
Halfop
Posts: 56
Joined: Wed Apr 03, 2002 8:00 pm
Location: germany
Contact:

channel loggin

Post by MasterJM »

hi,

my conf file inclueded:

logfile jpk #channel "/logs/chan.log"

but it logs only the actually day and channel.log.yesterday

how is it possible to log day for day
-> channel.log.day (or week)

sorry for this question, but i can not find
the meaning of "jpk"

thx for help :)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

There are 3 methods of logging

Logging using the default mode, which logs today, and yesterday only.

One continious log, where it never ends.

And appending the date to the file, and using 1 log per day.

These are all documented throughout various files included with eggdrop.

The meaning of "jpk" is also inside the config file. These are the types of messages to be logged in this file.

You can also type ".help console" for a list of the flags that can be used in log files.
M
MasterJM
Halfop
Posts: 56
Joined: Wed Apr 03, 2002 8:00 pm
Location: germany
Contact:

Post by MasterJM »

ppslim wrote:There are 3 methods of logging

Logging using the default mode, which logs today, and yesterday only.

One continious log, where it never ends.

And appending the date to the file, and using 1 log per day.

These are all documented throughout various files included with eggdrop.
thx this way, but i have put in the conf:

set keep-all-logs 0
logfile msbxco * "logs/amalith.log"
logfile jpk #milosch "/home/masterjm/egg1/logs/milosch/milosch.log"


and the egg do .log.log.yesterday

is something wrong?
(i want day by day logging)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

PLease read the documentation.
M
MasterJM
Halfop
Posts: 56
Joined: Wed Apr 03, 2002 8:00 pm
Location: germany
Contact:

Post by MasterJM »

ppslim wrote:PLease read the documentation.
:(
i have read it:

# 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


this is from the docu, but it dont work, so i dont know whats wrong.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Which of the three log file method paths are you trying to take?

1 logfile per day?
1 logfile only?
todays and yesterdays only?
M
MasterJM
Halfop
Posts: 56
Joined: Wed Apr 03, 2002 8:00 pm
Location: germany
Contact:

Post by MasterJM »

ppslim wrote:Which of the three log file method paths are you trying to take?

1 logfile per day?
1 logfile only?
todays and yesterdays only?
logfile per day:

now i test this:

set keep-all-logs 1
set logfile-suffix ".%d%b%Y"

logfile msbxco * "logs/amalith.log"
logfile jpk #milosch "/home/masterjm/egg1/logs/milosch/milosch.log"


seems to work (the files have the name milosch.log.day_month_year
but we will see in 1-2 days ;)

and how many times do the egg save the chan?
can i force to do it every minute?

thx ppslim
:)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

It will do this every 5 mins if I remember rightly.

If you have several logs, it can be resource hungry to do it every min. Being only 4 mins behind, is nothing, and is probably worth the effort.

However, again see the config file, for the setting that will change it to 1 min (there is either 1 or 5 mins. It is a non user-definable value).
T
Tanemann

Post by Tanemann »

At the moment I have the following options:

set max-logsize 1000
logfile jpk #uusiaika "logs/uusiaika.log"
set keep-all-logs 0
# set switch-logfiles-at 300

Even though I have disabled swith-logfiles-at, the bot still makes a new logfile at 3.00 AM and names the old log uusiaika.log.yesterday.

Is there some way to make Eggdrop log channel activity to just one file that would have a maximum size of, say, 1 meg? How is this done?

Thanks for any help :)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

You need to set keep-all-logs to 1
T
Tanemann

Post by Tanemann »

If I do that how can I get rid of the date that is added to the logfile's name? At least setting logfile-suffix "" does not help.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

OOPS, I didn't real you post right, or a skipped back, too far when referancing part of it.

Anyhow, from the good old eggdrop included doc, TRICKS
- 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
config file to make it keeping one logfile all the time. However,
this is not recommended on high traffic channels.
Aditionaly, set teh max log file size to 1024, to limit to 1 MB
T
Tanemann

Post by Tanemann »

D'oh! I guess that just proves that you should always read the _full_ document, not just half way through :D I actually did check the tricks section out earlier on, but missed that line. Oh well, thanks for the help :)
Locked