mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 21:38:27 +01:00
Replace ILogger with ILogger<T> wherever possible
Log entries will contain additional class context when using this interface
This commit is contained in:
@@ -21,7 +21,7 @@ namespace MediaBrowser.XbmcMetadata
|
||||
|
||||
public EntryPoint(
|
||||
IUserDataManager userDataManager,
|
||||
ILogger logger,
|
||||
ILogger<EntryPoint> logger,
|
||||
IProviderManager providerManager,
|
||||
IConfigurationManager config)
|
||||
{
|
||||
|
||||
@@ -15,7 +15,11 @@ namespace MediaBrowser.XbmcMetadata.Providers
|
||||
private readonly IConfigurationManager _config;
|
||||
private readonly IProviderManager _providerManager;
|
||||
|
||||
public AlbumNfoProvider(IFileSystem fileSystem, ILogger logger, IConfigurationManager config, IProviderManager providerManager)
|
||||
public AlbumNfoProvider(
|
||||
IFileSystem fileSystem,
|
||||
ILogger<AlbumNfoProvider> logger,
|
||||
IConfigurationManager config,
|
||||
IProviderManager providerManager)
|
||||
: base(fileSystem)
|
||||
{
|
||||
_logger = logger;
|
||||
|
||||
@@ -15,7 +15,11 @@ namespace MediaBrowser.XbmcMetadata.Providers
|
||||
private readonly IConfigurationManager _config;
|
||||
private readonly IProviderManager _providerManager;
|
||||
|
||||
public ArtistNfoProvider(IFileSystem fileSystem, ILogger logger, IConfigurationManager config, IProviderManager providerManager)
|
||||
public ArtistNfoProvider(
|
||||
IFileSystem fileSystem,
|
||||
ILogger<ArtistNfoProvider> logger,
|
||||
IConfigurationManager config,
|
||||
IProviderManager providerManager)
|
||||
: base(fileSystem)
|
||||
{
|
||||
_logger = logger;
|
||||
|
||||
@@ -15,7 +15,11 @@ namespace MediaBrowser.XbmcMetadata.Providers
|
||||
private readonly IConfigurationManager _config;
|
||||
private readonly IProviderManager _providerManager;
|
||||
|
||||
public EpisodeNfoProvider(IFileSystem fileSystem, ILogger logger, IConfigurationManager config, IProviderManager providerManager)
|
||||
public EpisodeNfoProvider(
|
||||
IFileSystem fileSystem,
|
||||
ILogger<EpisodeNfoParser> logger,
|
||||
IConfigurationManager config,
|
||||
IProviderManager providerManager)
|
||||
: base(fileSystem)
|
||||
{
|
||||
_logger = logger;
|
||||
|
||||
@@ -9,7 +9,11 @@ namespace MediaBrowser.XbmcMetadata.Providers
|
||||
{
|
||||
public class MovieNfoProvider : BaseVideoNfoProvider<Movie>
|
||||
{
|
||||
public MovieNfoProvider(IFileSystem fileSystem, ILogger logger, IConfigurationManager config, IProviderManager providerManager)
|
||||
public MovieNfoProvider(
|
||||
IFileSystem fileSystem,
|
||||
ILogger<MovieNfoProvider> logger,
|
||||
IConfigurationManager config,
|
||||
IProviderManager providerManager)
|
||||
: base(fileSystem, logger, config, providerManager)
|
||||
{
|
||||
}
|
||||
@@ -17,7 +21,11 @@ namespace MediaBrowser.XbmcMetadata.Providers
|
||||
|
||||
public class MusicVideoNfoProvider : BaseVideoNfoProvider<MusicVideo>
|
||||
{
|
||||
public MusicVideoNfoProvider(IFileSystem fileSystem, ILogger logger, IConfigurationManager config, IProviderManager providerManager)
|
||||
public MusicVideoNfoProvider(
|
||||
IFileSystem fileSystem,
|
||||
ILogger<MusicVideoNfoProvider> logger,
|
||||
IConfigurationManager config,
|
||||
IProviderManager providerManager)
|
||||
: base(fileSystem, logger, config, providerManager)
|
||||
{
|
||||
}
|
||||
@@ -25,7 +33,11 @@ namespace MediaBrowser.XbmcMetadata.Providers
|
||||
|
||||
public class VideoNfoProvider : BaseVideoNfoProvider<Video>
|
||||
{
|
||||
public VideoNfoProvider(IFileSystem fileSystem, ILogger logger, IConfigurationManager config, IProviderManager providerManager)
|
||||
public VideoNfoProvider(
|
||||
IFileSystem fileSystem,
|
||||
ILogger<VideoNfoProvider> logger,
|
||||
IConfigurationManager config,
|
||||
IProviderManager providerManager)
|
||||
: base(fileSystem, logger, config, providerManager)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -15,7 +15,11 @@ namespace MediaBrowser.XbmcMetadata.Providers
|
||||
private readonly IConfigurationManager _config;
|
||||
private readonly IProviderManager _providerManager;
|
||||
|
||||
public SeasonNfoProvider(IFileSystem fileSystem, ILogger logger, IConfigurationManager config, IProviderManager providerManager)
|
||||
public SeasonNfoProvider(
|
||||
IFileSystem fileSystem,
|
||||
ILogger<SeasonNfoProvider> logger,
|
||||
IConfigurationManager config,
|
||||
IProviderManager providerManager)
|
||||
: base(fileSystem)
|
||||
{
|
||||
_logger = logger;
|
||||
|
||||
@@ -15,7 +15,11 @@ namespace MediaBrowser.XbmcMetadata.Providers
|
||||
private readonly IConfigurationManager _config;
|
||||
private readonly IProviderManager _providerManager;
|
||||
|
||||
public SeriesNfoProvider(IFileSystem fileSystem, ILogger logger, IConfigurationManager config, IProviderManager providerManager)
|
||||
public SeriesNfoProvider(
|
||||
IFileSystem fileSystem,
|
||||
ILogger<SeriesNfoProvider> logger,
|
||||
IConfigurationManager config,
|
||||
IProviderManager providerManager)
|
||||
: base(fileSystem)
|
||||
{
|
||||
_logger = logger;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||
ILibraryManager libraryManager,
|
||||
IUserManager userManager,
|
||||
IUserDataManager userDataManager,
|
||||
ILogger logger)
|
||||
ILogger<AlbumNfoSaver> logger)
|
||||
: base(fileSystem, configurationManager, libraryManager, userManager, userDataManager, logger)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -14,7 +14,13 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||
{
|
||||
public class ArtistNfoSaver : BaseNfoSaver
|
||||
{
|
||||
public ArtistNfoSaver(IFileSystem fileSystem, IServerConfigurationManager configurationManager, ILibraryManager libraryManager, IUserManager userManager, IUserDataManager userDataManager, ILogger logger)
|
||||
public ArtistNfoSaver(
|
||||
IFileSystem fileSystem,
|
||||
IServerConfigurationManager configurationManager,
|
||||
ILibraryManager libraryManager,
|
||||
IUserManager userManager,
|
||||
IUserDataManager userDataManager,
|
||||
ILogger<ArtistNfoSaver> logger)
|
||||
: base(fileSystem, configurationManager, libraryManager, userManager, userDataManager, logger)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -14,7 +14,13 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||
{
|
||||
public class EpisodeNfoSaver : BaseNfoSaver
|
||||
{
|
||||
public EpisodeNfoSaver(IFileSystem fileSystem, IServerConfigurationManager configurationManager, ILibraryManager libraryManager, IUserManager userManager, IUserDataManager userDataManager, ILogger logger)
|
||||
public EpisodeNfoSaver(
|
||||
IFileSystem fileSystem,
|
||||
IServerConfigurationManager configurationManager,
|
||||
ILibraryManager libraryManager,
|
||||
IUserManager userManager,
|
||||
IUserDataManager userDataManager,
|
||||
ILogger<EpisodeNfoSaver> logger)
|
||||
: base(fileSystem, configurationManager, libraryManager, userManager, userDataManager, logger)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -16,7 +16,13 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||
{
|
||||
public class MovieNfoSaver : BaseNfoSaver
|
||||
{
|
||||
public MovieNfoSaver(IFileSystem fileSystem, IServerConfigurationManager configurationManager, ILibraryManager libraryManager, IUserManager userManager, IUserDataManager userDataManager, ILogger logger)
|
||||
public MovieNfoSaver(
|
||||
IFileSystem fileSystem,
|
||||
IServerConfigurationManager configurationManager,
|
||||
ILibraryManager libraryManager,
|
||||
IUserManager userManager,
|
||||
IUserDataManager userDataManager,
|
||||
ILogger<MovieNfoSaver> logger)
|
||||
: base(fileSystem, configurationManager, libraryManager, userManager, userDataManager, logger)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||
ILibraryManager libraryManager,
|
||||
IUserManager userManager,
|
||||
IUserDataManager userDataManager,
|
||||
ILogger logger)
|
||||
ILogger<SeasonNfoSaver> logger)
|
||||
: base(fileSystem, configurationManager, libraryManager, userManager, userDataManager, logger)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
||||
ILibraryManager libraryManager,
|
||||
IUserManager userManager,
|
||||
IUserDataManager userDataManager,
|
||||
ILogger logger)
|
||||
ILogger<SeriesNfoSaver> logger)
|
||||
: base(fileSystem, configurationManager, libraryManager, userManager, userDataManager, logger)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user