Skip to content

Commit

Permalink
Split loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
lyarenei committed Feb 23, 2024
1 parent ba21636 commit c4dad3f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Jellyfin.Plugin.ListenBrainz/EntryPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ public EntryPoint(
_sessionManager = sessionManager;
_userDataManager = userDataManager;

var logger = loggerFactory.CreateLogger(Plugin.LoggerCategory);
var listenBrainzClient = ClientUtils.GetListenBrainzClient(logger, clientFactory, libraryManager);
var musicBrainzClient = ClientUtils.GetMusicBrainzClient(logger, clientFactory);
var listenBrainzLogger = loggerFactory.CreateLogger(Plugin.LoggerCategory + ".ListenBrainzApi");
var listenBrainzClient = ClientUtils.GetListenBrainzClient(listenBrainzLogger, clientFactory, libraryManager);

var musicBrainzLogger = loggerFactory.CreateLogger(Plugin.LoggerCategory + ".MusicBrainzApi");
var musicBrainzClient = ClientUtils.GetMusicBrainzClient(musicBrainzLogger, clientFactory);

_plugin = new PluginImplementation(
logger,
loggerFactory.CreateLogger(Plugin.LoggerCategory),
listenBrainzClient,
musicBrainzClient,
userDataManager,
Expand Down

0 comments on commit c4dad3f

Please sign in to comment.