Hello there,
we switched an application to log4net to serilog, to set NHibernate logger
we uses *NHibernate.Logging.Serilog
<https://github.com/lnu/NHibernate.Logging.Serilog>*
It seems to work but I noticed some logs are missing such us when the
SourceContext are
1. NHibernate.Type.StringType
2. NHibernate.Type.DateTimeType
3. etc ...
4. The planned SQL statement
We believe NHibernate isn't correctly set to debug level even if serilog is
set as minimum level to debug.
We tried to set the minimul level of serilog and with the override of
NHibernate in configuration (using Serilog.Sinks.AppSettings) or by code
<add key="serilog:minimum-level" value="Debug" />
<add key="serilog:minimum-level:override:NHibernate" value="Debug" />
.MinimumLevel.Debug()
.MinimumLevel.Override("NHibernate",
Serilog.Events.LogEventLevel.Debug)
Any suggestions? Something else to set? Something else to check?
Thanks
NHibernate version is 5.3.12
serilog version is 2.12.0
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nhusers/da674374-1240-4730-8c4f-9e5f70135551n%40googlegroups.com.