R
Raymond Chiu
Dear all,
I find log4net in the following link.
http://sadi02.wordpress.com/2008/06/29/log4net-tutorial-in-c-net-how-can-i-show-log-in-a-file/
In point 5.
5. To use log4net put this as a local class variable: protected
static readonly ILog log =
LogManager.GetLogger(Program);
How to avoid to put "protected static readonly ILog log =
LogManager.GetLogger(Program);" in every aspx.cs??
As if we need to put this line in every class, it will be troublesome.
Do you have any ideas???
I find log4net in the following link.
http://sadi02.wordpress.com/2008/06/29/log4net-tutorial-in-c-net-how-can-i-show-log-in-a-file/
In point 5.
5. To use log4net put this as a local class variable: protected
static readonly ILog log =
LogManager.GetLogger(Program);
How to avoid to put "protected static readonly ILog log =
LogManager.GetLogger(Program);" in every aspx.cs??
As if we need to put this line in every class, it will be troublesome.
Do you have any ideas???