I am new to log4net. I want to pass userid while logging how do I do it. Thanks in advance
Shiva Ganapatiraju New York State Office of Children & Family Services Information Technology/SSOP Project 518.403.9056 [EMAIL PROTECTED] http://ocfs.state.nyenet/admin/ofm/rsu -------------------------------------------------------- This communication, together with any attachments hereto or links contained herein, is for the sole use of the intended recipient(s) and may contain information that is confidential, privileged, or legally protected, and as such is not a public document. If you are not the intended recipient, you are hereby notified that any review, disclosure, copying, dissemination, distribution or use of this communication is STRICTLY PROHIBITED. If you have received this communication in error, please notify the sender immediately by return e-mail message and delete the original and all copies of the communication, along with any attachments hereto or links herein, from your system. -----Original Message----- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Thursday, September 22, 2005 2:05 PM To: Log4NET User Subject: Re: Logging based on userID Filtering on custom parameter Burger, Erik 21 Apr 2005 11:45:48 -0000 http://www.mail-archive.com/[email protected]/msg01561.htm l --- "Burger, Erik" <[EMAIL PROTECTED]> wrote: > Hi, > > I know I have asked this question before in a long distant past and > saved the response for when I had more time. Now that I have, I cannot > find the response. Typical. > > Anyway, I have written an extension to the log4net framework to add a > 'userID' field. This works great. What I would like to do now (or, to > be precise, what my Support team would like to do now) is be able to > switch logging levels based on userID. That is, I would like to be > able to have Info as my standard logging level for all users but be > able to turn on the Debug level for particular users in response to > Support calls. > > How would I go about doing that? Is there something I can do using > Filters or do I need to extend my extension in some way?? > > Thanks in advance, > Erik > > ------------------------------- > Lead Developer > Research and Development Group > GPXS Wireless Ltd. > Phone: +31 (0) 20 4621 988 > Fax: +31 (0) 20 7507 301 > Email: [EMAIL PROTECTED] > > > > This e-mail (including all attachments) is confidential and may be > privileged. It is for the exclusive use of the addressee only. If you > are > not the addressee, you are hereby notified that any dissemination of > this > communication is strictly prohibited. If you have received this > communication in error, please erase all copies of the message and > its > attachments and notify us immediately at [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>. Thank You. >
