Skip to content

Commit 1b9d44e

Browse files
fredericDelaportehazzik
authored andcommitted
Document nhibernate-logger configuration property
- Fixes #1386
1 parent 0240b73 commit 1b9d44e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

doc/reference/modules/configuration.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,6 +1091,33 @@ in the parameter binding.</programlisting>
10911091
</para>
10921092
</entry>
10931093
</row>
1094+
<row>
1095+
<entry>
1096+
<literal>nhibernate-logger</literal>
1097+
</entry>
1098+
<entry>
1099+
The class name of an <literal>ILoggerFactory</literal> implementation. It allows using another
1100+
logger than log4net.
1101+
<para>
1102+
The default is not defined, which causes NHibernate to search for log4net assembly. If this
1103+
search succeeds, NHibernate will log with log4net. Otherwise, its internal logging will
1104+
be disabled.
1105+
</para>
1106+
<para>
1107+
This is a very special system-level property. It can only be set through an
1108+
<ulink url="https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/appsettings/">appSetting</ulink>
1109+
named <literal>nhibernate-logger</literal> in the application configuration file. It cannot
1110+
be set neither with <literal>NHibernate.Cfg.Environment</literal> class, nor be defined in the
1111+
<literal>&lt;hibernate-configuration&gt;</literal> section of the application
1112+
configuration file, nor supplied by using <literal>Configuration.SetProperties</literal>, nor
1113+
set in the <literal>hibernate.cfg.xml</literal> configuration file.
1114+
</para>
1115+
<para>
1116+
<emphasis role="strong">eg.</emphasis>
1117+
<literal>classname.of.LoggerFactory, assembly</literal>
1118+
</para>
1119+
</entry>
1120+
</row>
10941121
</tbody>
10951122
</tgroup>
10961123
</table>

0 commit comments

Comments
 (0)