Re: Configuration Questions

2005-06-30 Thread Ron Grabowski
If GetClassName() were implemented to return a string: static string GetClassName(); The code would look something like this: ILog log = LogManager.GetLogger("Company.Project.User); ILog auditLog = LogManager.GetLogger("AUDIT.Company.Project.User"); Putting the AUDIT in front is a simple way

Re: Configuration Questions

2005-06-29 Thread Weston Weems
one quick question on this subject btw... how does GetLogger know to get the AUDIT log if I am throwing a class type in there as well? Is that what additivity is? On 6/29/05, Weston Weems <[EMAIL PROTECTED]> wrote: > Exactly the kind of thing I was looking for. > > On 6/29/05, Ron Grabowski

Re: Configuration Questions

2005-06-29 Thread Weston Weems
Exactly the kind of thing I was looking for. On 6/29/05, Ron Grabowski <[EMAIL PROTECTED]> wrote: > You could prefix a second logger with AUDIT to differentiate messages > coming from the same class: > > ILog log = LogManager.GetLogger(GetClassName()); > ILog auditLog = LogManager.GetLogger("AU

Re: Configuration Questions

2005-06-29 Thread Ron Grabowski
You could prefix a second logger with AUDIT to differentiate messages coming from the same class: ILog log = LogManager.GetLogger(GetClassName()); ILog auditLog = LogManager.GetLogger("AUDIT." + GetClassName()); auditLog.Info("The user has logged in."); --- Weston Weems <[EMAIL P

Configuration Questions

2005-06-29 Thread Weston Weems
Ok, after re-evaluating my needs... heres what I've decided... 1) I need basic logging functionality with normal levels (this much I can figure out fairly easily) 2) I will be using log4net to record audit logging, eg login failures... and stuff I'll be reporting against so it'll have to be datab

RE: Configuration Questions

2004-05-24 Thread David Elliott
o: "Log4NET User" To: Log4NET User Subject: RE: Configuration Questions Date: Mon, 24 May 2004 13:33:47 -0500 Let me see if I can tackle this... General 1) What is the difference between using and ? Appenders are the conceptual name for outputs. There ar

RE: Configuration Questions

2004-05-24 Thread Chad Myers
nder: AnotherRolling... -Chad -Original Message- From: Denis, Rich [mailto:[EMAIL PROTECTED] Sent: Monday, May 24, 2004 12:34 PM To: Log4NET User Subject: RE: Configuration Questions Let me see if I can tackle this... General 1) What is the differenc

RE: Configuration Questions

2004-05-24 Thread Denis, Rich
ociate them to the logger using the appender-ref tag. Hope this helps. Rich -Original Message- From: David Elliott [mailto:[EMAIL PROTECTED] Sent: Monday, May 24, 2004 11:23 AM To: [email protected] Subject: Configuration Questions I am just starting out using Log4Net. I

Configuration Questions

2004-05-24 Thread David Elliott
I am just starting out using Log4Net. I have looked through the .chm file and the introduction.html files and still have some questions on the items contained within the configuration file and in general. General 1) What is the difference between using and ? 2) Is