O'Reilly logo

RavenDB High Performance by Brian Ritchie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Looking under the hood

If you need insight beyond what is provided by these tools, there is one more option. RavenDB uses NLog to write detailed information about what it is up to. NLog is an open source logging framework for .NET with multiple output targets ranging from simple files to queues and databases.

To enable NLog debug logging, simply place a file named NLog.config in RavenDB's base directory. The following sample code is provided by the RavenDB documentation, but the file can be customized to meet your needs. Reference the NLog documentation for more details: https://github.com/nlog/nlog/wiki/Configuration-file.

<nlog xmlns="http://www.nlog-project.org/schemas/NLog.netfx35.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <targets> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required