Use Microsoft.Extensions.Logging abstraction

This commit is contained in:
Bond_009
2018-12-13 14:18:25 +01:00
parent b0fd432126
commit 0f8b3c6347
310 changed files with 1421 additions and 2058 deletions

View File

@@ -1,4 +1,4 @@
using MediaBrowser.Model.Logging;
using Microsoft.Extensions.Logging;
using System;
using System.Threading.Tasks;
@@ -28,7 +28,7 @@ namespace MediaBrowser.Common.Events
}
catch (Exception ex)
{
logger.ErrorException("Error in event handler", ex);
logger.LogError("Error in event handler", ex);
}
});
}
@@ -54,7 +54,7 @@ namespace MediaBrowser.Common.Events
}
catch (Exception ex)
{
logger.ErrorException("Error in event handler", ex);
logger.LogError("Error in event handler", ex);
}
});
}
@@ -77,7 +77,7 @@ namespace MediaBrowser.Common.Events
}
catch (Exception ex)
{
logger.ErrorException("Error in event handler", ex);
logger.LogError("Error in event handler", ex);
}
}
}
@@ -100,7 +100,7 @@ namespace MediaBrowser.Common.Events
}
catch (Exception ex)
{
logger.ErrorException("Error in event handler", ex);
logger.LogError("Error in event handler", ex);
}
}
}