The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.
| Author |
Messages |
|
rampelnik69
 |
| 02/04/2009 9:54 AM |
|
Pierre LHUSSIEZ wrote: > > Hi, > > coul You help Me, please, how use specific log for MORE CLASSES ??? (no > one class only) > > does log4net provide this feature? > > thanks. > > -- > Pierre LHUSSIEZ > >
|
|
|
|
|
Freddy Gómez
 |
| 02/04/2009 3:12 PM |
|
| This is an option I know,
If the classes share the same namespace you can define a logger with the value of the namespace then all the classes will use that logger.
for example: let's say you have the namespace 'mynamespace' and you have the clases
'mynamespace.myclass1', 'mynamespace.myclass2' y 'mynamespace.myclass3'. Then if you define a logger with name
loggername = 'mynamespace' you will have the three classes sharing the same logger.
Check out the documentation of the filters you may find them useful.
-fred
|
|
|
|
|
|
| You are not authorized to post a reply. |
|
|
|
ActiveForums 3.7
|