private void RegisterServerDependencies() { IoCManager.Register <IServerMessageFactory, ServerMessageFactory>(); IoCManager.Register <IServerChatManager, ServerChatManager>(); var logLevel = ConfigurationManager.AppSettings["LogLevel"].ToLogLevel(); IoCManager.AddServerLogging(builder => builder .AddFile("Logs/Jeffistance-Server-{Date}.txt", logLevel) .AddConsole() .SetMinimumLevel(logLevel)); IoCManager.BuildGraph(); _logger = IoCManager.GetServerLogger(); _logger.LogInformation("Registered server dependencies."); }