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.

Timestamp logging

Old posts that have not been replied to for several years.
Locked
s
squirt_gunn

Timestamp logging

Post by squirt_gunn »

I am using an eggdrop bot to log everything in a specific channel. By default when I turn timestamps on in the logs it only timestamps hour and minute. Does anybody know how I can add seconds to the timestamps? Thanks!
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: Timestamp logging

Post by user »

squirt_gunn wrote:Does anybody know how I can add seconds to the timestamps? Thanks!
Edit eggdrop.h line 58 and recompile

Code: Select all

/*
 * Set the following to the timestamp for the logfile entries.
 * Popular times might be "[%H:%M]" (hour, min), or "[%H:%M:%S]" (hour, min, sec)
 * Read `man strftime' for more formatting options.  Keep it below 32 chars.
 */
#define LOG_TS "[%H:%M]"
s
squirt_gunn

Post by squirt_gunn »

Worked great, thanks a lot!
Locked