You are currently browsing legacy 1.0 version of documentation. Click here to switch to the newest 5.2 version.

We can help you with migration to the latest RavenDB

Contact Us Now
see on GitHub

Enabling debug logging for Raven

Raven has extensive support for debug logging, enabling you to figure out exactly what is going on in the server. By default, logging is turned off but you can enable it at any time by creating a file called "NLog.config" in Raven's base directory with the following content:

<nlog xmlns="" xmlns:xsi="">

            <target xsi:type="SplitGroup">
                <target xsi:type="HttpEndpoint" />
                <target name="File" xsi:type="File"
                    <layout xsi:type="CsvLayout">
                        <column name="time" layout="${longdate}" />
                        <column name="logger" layout="${logger}"/>
                        <column name="level" layout="${level}"/>
                        <column name="message" layout="${message}" />
                        <column name="exception" layout="${exception:format=tostring}" />
        <logger name="Raven.*" writeTo="AsyncLog"/>