You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Giacomo Fiorentini <g....@esalab.it> on 2006/07/06 12:04:07 UTC
One log file per class. Is it a possible behaviour?
I need to create and manage a log system that
has one file for each class logged, with the possibility
to have the following log-file-name pattern:
<full-namespace-class-name>.<yyyymmdd>.log
For example suppose I have 2 classes:
class C1 {
protected static readonly ILog log = LogManager.GetLogger(typeof(C1 ));
...
log.Debug(".... this write to C2.yyyymmdd.log ....");
}
class C2 {
protected static readonly ILog log = LogManager.GetLogger(typeof(C2 ));
...
log.Debug("... this must write to C2.yyyymmdd.log file ...");
}
Is it possibile with the current release in some way?
If not, where can I start for building this type of logging behaviour ?
10x for any help.
Regards.
Giacomo Fiorentini