mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-26 19:23:06 +00:00
Use Microsoft.Extensions.Logging abstraction
This commit is contained in:
parent
b0fd432126
commit
0f8b3c6347
310 changed files with 1421 additions and 2058 deletions
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Text;
|
||||
using MediaBrowser.Model.IO;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using MediaBrowser.Model.Serialization;
|
||||
using MediaBrowser.Model.Text;
|
||||
using NLangDetect.Core;
|
||||
|
|
@ -102,7 +102,7 @@ namespace Emby.Server.Implementations.TextEncoding
|
|||
|
||||
if (!string.IsNullOrWhiteSpace(language))
|
||||
{
|
||||
_logger.Debug("Text language detected as {0}", language);
|
||||
_logger.LogDebug("Text language detected as {0}", language);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -165,7 +165,7 @@ namespace Emby.Server.Implementations.TextEncoding
|
|||
throw new ArgumentNullException("charset");
|
||||
}
|
||||
|
||||
_logger.Debug("Getting encoding object for character set: {0}", charset);
|
||||
_logger.LogDebug("Getting encoding object for character set: {0}", charset);
|
||||
|
||||
try
|
||||
{
|
||||
|
|
@ -174,7 +174,7 @@ namespace Emby.Server.Implementations.TextEncoding
|
|||
catch (ArgumentException)
|
||||
{
|
||||
charset = charset.Replace("-", string.Empty);
|
||||
_logger.Debug("Getting encoding object for character set: {0}", charset);
|
||||
_logger.LogDebug("Getting encoding object for character set: {0}", charset);
|
||||
|
||||
return Encoding.GetEncoding(charset);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue