I recently read that it is possible to define the Log4Net
Config XML in defining this file in a class attribute.
<Assembly: log4net.Config.XMLConfigurator(ConfigFile:="Log4Net.Config.xml", Watch:=True)>
How can I define this file using only pure VB.Net
code without using Attribute
technique ?
Example (this is only textuals examples)
log4net.Config.OpenFile("Log4Net.Config.xml")
log4net.OpenConfigFile("Log4Net.Config.xml")
log4net.InitLoggingConfigFile("Log4Net.Config.xml")
The configuration's file already exists. I search only the code that read it to configure logging.