Hi Ramon,

I'm developing with NHibernate and I have the error when adding
Log4Net framework to log out NHibernate activity.

I initialize Log4Net:

[assembly: log4net.Config.XmlConfigurator(Watch = true,
ConfigFile="log4net.xml.config")]

Regards,

On Oct 4, 12:45 pm, Ramon Smits <[email protected]> wrote:
> > but Log4Net doesn't show logs on console.
>
> You will need to initialize log4net first. You can either do this either of
> the following but the second requires that your application configuration
> file contains a log4net section.
>
>   log4net.Config.BasicConfigurator.Configure();
>   log4net.Config.XmlConfigurator.Configure();
>
> If you have any other issues with log4net then I recommend that you either
> read the documentation athttp://logging.apache.org/log4net/or post your
> log4net related questions to StackOverflow.
>
> ps. This mailinglist is about the development OF NHibernate and NOT
> development WITH NHibernate.
>
> --
> Ramon

Reply via email to