[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Pass in __FILE__ __LINE__ __func__ for better logging?
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] Pass in __FILE__ __LINE__ __func__ for better logging?
- From: Shuo Chen <giantchen@xxxxxxxxx>
- Date: Sat, 20 Mar 2010 10:27:29 +0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Fri, 19 Mar 2010 22:28:00 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=6yk4G2SZKs3TToFW5tzmDhgiDvGKRh26BJp721kkRDA=; b=WQEK/6YuYmbiEKAPSHTAJp4PZ8jxGmOEtnKtqJyEosz/IjdvsQ9TYHRGuYe5sLdH0K 8fFhS996nrj3Kg+nTkvI7aZJQv7mOyzC2mgZj2dhYgdjS2WWtCGjL8NZyCaRF8XfzgQ3 knYeADeDnWGTXOX+suvP+tOStSDAIIC7W6zMA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=GeX9Voim/ecHr6bi9q9IVTXA+9UGWFBAAV+ZaX+lHQpiV+3cj0E5zXBuxKi/NP2EOt 2lBxA2vtwBvevV00co4EyISSMEzGRqmpZThufKpHNS4ANnRhO5JCleRJHcuTNr1PgJw5 TNl3VTTfxMcrKWWc3AKNLIGtaFp3s1kDTyslY=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
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.