mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:37:23 +01:00
Loggerrework (#45)
* test some refactoring for cachedplayer * rework logging * fix saving of log level --------- Co-authored-by: rootdarkarchon <root.darkarchon@outlook.com>
This commit is contained in:
parent
7f36e80e2a
commit
2ae5d42e4d
49 changed files with 676 additions and 691 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using MareSynchronos.Managers;
|
||||
using MareSynchronos.MareConfiguration;
|
||||
using MareSynchronos.Models;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace MareSynchronos.Factories;
|
||||
|
||||
|
|
@ -8,15 +9,17 @@ public class PairFactory
|
|||
{
|
||||
private readonly MareConfigService _configService;
|
||||
private readonly ServerConfigurationManager _serverConfigurationManager;
|
||||
private readonly ILoggerFactory _loggerFactory;
|
||||
|
||||
public PairFactory(MareConfigService configService, ServerConfigurationManager serverConfigurationManager)
|
||||
public PairFactory(MareConfigService configService, ServerConfigurationManager serverConfigurationManager, ILoggerFactory loggerFactory)
|
||||
{
|
||||
_configService = configService;
|
||||
_serverConfigurationManager = serverConfigurationManager;
|
||||
_loggerFactory = loggerFactory;
|
||||
}
|
||||
|
||||
public Pair Create()
|
||||
{
|
||||
return new Pair(_configService, _serverConfigurationManager);
|
||||
return new Pair(_loggerFactory.CreateLogger<Pair>(), _configService, _serverConfigurationManager);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue