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.

default logging timestamp

General support and discussion of Eggdrop bots.
Post Reply
p
psychic
Voice
Posts: 5
Joined: Tue Sep 02, 2008 11:07 am

default logging timestamp

Post by psychic »

Hi, when I enable channel logging for the eggdrop, when I enable timing the logs, it shows [hh:mm] format timestamp, how do I customize the timestamp to be something like this: [2008-09-09 14:42:00] ?

Thanks in advance!
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

../src/eggdrop.h:

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]"
This will also display the same format in DCC ...etc and modifying the eggdrop source code not recommended.
Post Reply