Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of custom logging documentation #1386

Closed
mobius127 opened this issue Oct 17, 2017 · 2 comments
Closed

Lack of custom logging documentation #1386

mobius127 opened this issue Oct 17, 2017 · 2 comments

Comments

@mobius127
Copy link

How can I configure Serilog for logging NHibernate?

@fredericDelaporte
Copy link
Member

fredericDelaporte commented Oct 17, 2017

By default NHibernate logs with log4net, if its assembly is available.
This can be changed by specifying the full type name of a custom NHibernate.ILoggerFactory within an appSetting parameter named nhibernate-logger.

But it may not be enough for what you expect by logging with Serilog. Some works are ongoing for modernizing the logging capabilities of NHibernate, see #1377.

@fredericDelaporte
Copy link
Member

Documentation of nhibernate-logger is lacking. And maybe it is the case for some other similar "out of standard conf" parameters. (Or maybe not, the only references to System.Configuration.ConfigurationManager.AppSettings are done for this one.)

@fredericDelaporte fredericDelaporte self-assigned this Oct 17, 2017
@fredericDelaporte fredericDelaporte changed the title Serilog Tracing Lack of custom logging documentation (was Serilog Tracing) Oct 17, 2017
fredericDelaporte added a commit to fredericDelaporte/nhibernate-core that referenced this issue Oct 20, 2017
fredericDelaporte added a commit to fredericDelaporte/nhibernate-core that referenced this issue Oct 23, 2017
fredericDelaporte added a commit to fredericDelaporte/nhibernate-core that referenced this issue Oct 26, 2017
fredericDelaporte added a commit to fredericDelaporte/nhibernate-core that referenced this issue Oct 27, 2017
hazzik pushed a commit to fredericDelaporte/nhibernate-core that referenced this issue Oct 31, 2017
hazzik pushed a commit to fredericDelaporte/nhibernate-core that referenced this issue Oct 31, 2017
@hazzik hazzik added this to the 5.0.1 milestone Oct 31, 2017
@fredericDelaporte fredericDelaporte changed the title Lack of custom logging documentation (was Serilog Tracing) Lack of custom logging documentation Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants