more service stack logging

This commit is contained in:
Luke Pulverenti 2013-04-13 16:20:04 -04:00
parent 44ff7167f0
commit dabf257778

View File

@ -105,6 +105,8 @@ namespace MediaBrowser.Server.Implementations.HttpServer
DefaultRedirectPath = defaultRedirectpath;
_logger = logger;
ServiceStack.Logging.LogManager.LogFactory = new NLogFactory();
EndpointHostConfig.Instance.ServiceStackHandlerFactoryPath = null;
EndpointHostConfig.Instance.MetadataRedirectPath = "metadata";
@ -136,8 +138,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer
Plugins.Add(new SwaggerFeature());
Plugins.Add(new CorsFeature());
ServiceStack.Logging.LogManager.LogFactory = new NLogFactory();
ResponseFilters.Add((req, res, dto) =>
{
var exception = dto as Exception;
@ -177,7 +177,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
if (length > 0)
{
var response = (HttpListenerResponse) res.OriginalResponse;
var response = (HttpListenerResponse)res.OriginalResponse;
response.ContentLength64 = length;