Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (20 sloc) 0.541 kB
using System.Xml;
using NLog.Config;
using Raven.Database.Server;
namespace Raven.Tests
{
public class WithNLog
{
static WithNLog()
{
if (NLog.LogManager.Configuration != null)
return;
HttpEndpointRegistration.RegisterHttpEndpointTarget();
using (var stream = typeof(RemoteClientTest).Assembly.GetManifestResourceStream("Raven.Tests.DefaultLogging.config"))
using (var reader = XmlReader.Create(stream))
{
NLog.LogManager.Configuration = new XmlLoggingConfiguration(reader, "default-config");
}
}
}
}
Jump to Line
Something went wrong with that request. Please try again.