Jellyfin Forum
Error setting up debug logging - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Error setting up debug logging (/t-error-setting-up-debug-logging)



Error setting up debug logging - neilr8133 - 2025-11-19

I apologize for what is probably a simple question, but I'm seeing an error in the setup of a debug logger per https://jellyfin.org/docs/general/administration/troubleshooting/#debug-logging on Windows with Jellyfin 10.11.0 through 10.11.3 and would appreciate some help.  (Ultimately I'm trying to confirm if I'm having the same problem as https://github.com/jellyfin/jellyfin/issues/15000 but the stack overflow is too long to see the first few lines in my terminal scrollback buffer and the log doesn't show the DBG messages.)

Per the instructions at the troubleshooting page (and in #15000) I created "C:\ProgramData\Jellyfin\Server_data\config\logging.json" with the following content:

Code:
C:\ProgramData\Jellyfin\Server_data\config>type logging.json
{
  "Serilog": {
    "MinimumLevel": {
      "Default": "Debug",
      "Override": {
        "": "Debug"
      }
    }
  }
}

C:\ProgramData\Jellyfin\Server_data\config>

but when I launch the server I get an error about an invalid logging configuration before the server then proceeds to launch normally:

Code:
C:\notused\daily\1>"C:\Program Files\Jellyfin\Server\jellyfin.exe" --datadir "C:\ProgramData\Jellyfin\Server_data"
[06:03:52] [FTL] [2] : Failed to create/read logger configuration
System.ArgumentException: A source source must be provided. (Parameter 'source')
  at Serilog.Configuration.LoggerMinimumLevelConfiguration.Override(String source, LoggingLevelSwitch levelSwitch)
  at Serilog.Settings.Configuration.ConfigurationReader.<>c__DisplayClass11_1.<ApplyMinimumLevel>b__3(LoggerMinimumLevelConfiguration configuration, LoggingLevelSwitch levelSwitch)
  at Serilog.Settings.Configuration.ConfigurationReader.<>c__DisplayClass11_0.<ApplyMinimumLevel>g__ApplyMinimumLevelConfiguration|1(IConfigurationSection directive, Action`2 applyConfigAction)
  at Serilog.Settings.Configuration.ConfigurationReader.ApplyMinimumLevel(LoggerConfiguration loggerConfiguration)
  at Serilog.Settings.Configuration.ConfigurationReader.Configure(LoggerConfiguration loggerConfiguration)
  at Serilog.Configuration.LoggerSettingsConfiguration.Settings(ILoggerSettings settings)
  at Serilog.ConfigurationLoggerConfigurationExtensions.Configuration(LoggerSettingsConfiguration settingConfiguration, IConfiguration configuration, ConfigurationReaderOptions readerOptions)
  at Jellyfin.Server.Helpers.StartupHelpers.InitializeLoggingFramework(IConfiguration configuration, IApplicationPaths appPaths)
[06:03:56] [INF] [2] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: C:\ProgramData\Jellyfin\Server_data\cache
[06:04:01] [INF] [8] Jellyfin.Server.ServerSetupApp.SetupServer: Kestrel is listening on 0.0.0.0
( more stuff )

Can someone please point out what I'm missing?


Thanks,
-Neil