Can anyone point me to some sample c# code on how to set up the logger and fileappender?
I've tried following the examples in the supplied documentation but I don't understand it all.
For example,
ILog log = LogManager.GetLogger(typeof(Form1));
FileAppender fa = new FileAppender("c:\\znewlog.txt");
This fails because fileappender constructor is looking for another parameter
of type ILayout. I can't find any example of what Ilayout is or how to pass
it in.
Also, If I decide to use a config file to do this, how do you link the logger to the config file (make it look there for it's settings)?
Thanks,
Rut
CONFIDENTIALITY NOTE: This e-mail message, including any
attachment(s),
contains information that may be confidential,
protected by the
attorney-client or other legal privileges, and/or
proprietary non-public
information. If you are not an intended
recipient of this message or an
authorized assistant to an intended
recipient, please notify the sender
by replying to this message and
then delete it from your system. Use,
dissemination, distribution,
or reproduction of this message and/or any
of its attachments (if
any) by unintended recipients is not authorized
and may be unlawful.
