Hi devmates,
of course i tried the search-field first, but couldnt find something pointing my problem.
I am trying to configure the nhibernate logger seperately to my applications log, as described in the subject ;).
Code:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
</configSections>
<log4net>
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="Logs\Framework.log" />
<appendToFile value="true" />
<maximumFileSize value="30MB"/>
<maxSizeRollBackups value="5"/>
<rollingStyle value="Composite" />
<datePattern value="-yyyy-MM-dd.lo\g" />
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date %-5level %logger - %message%newline" />
</layout>
</appender>
<root>
<level value="WARN" />
<appender-ref ref="RollingLogFileAppender" />
</root>
</log4net>
</configuration>
So, if i configure the log value to any value, the nhibernate logger logs everything it cans. Is there any way to disable the logs from nhibernate and keep my own log´s in my application alive? Or at least i would like to say:
Hey, NHibernate´s Logger, please just log your Warnings or Errors and Hey Application´s Logger, you can log on INFO.
Hope you understand my problem.
best regards
ap