[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] Pass in __FILE__ __LINE__ __func__ for better logging?



Hi there,

Now the log callback takes two parameters:

typedef void (*event_log_cb)(int severity, const char *msg);

How about adding another two or thee:

typedef void (*event_log_cb)(int severity, const char *msg, const
char* file, int line /*, const char* func*/);

Given many logging libraries log file and line info, this may make
logging message more useful.

Regards,
Shuo Chen
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.