• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Error setting up debug logging

     
    • 0 Vote(s) - 0 Average

    Error setting up debug logging

    neilr8133
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2025 Nov
    Reputation: 0
    Country:United States
    #1
    2025-11-19, 02:27 PM
    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/admini...ug-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
    neilr8133
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2025 Nov
    Reputation: 0
    Country:United States
    #2
    7 hours ago
    Closing the loop (at least mostly): According to https://github.com/jellyfin/jellyfin/iss...3407581063 the "Fatal" error at the top is normal when starting the server in this configuration.  (Although I still do not see any DBG-level messages in my logs, so I suspect there is still something missing.)

    -Neil
    theguymadmax
    Offline

    Community Moderator

    Posts: 1,455
    Threads: 0
    Joined: 2024 Jun
    Reputation: 81
    #3
    4 hours ago
    Standard: 

    {
        "Serilog": {
            "MinimumLevel": {
                "Default": "Information",
                "Override": {
                    "Microsoft": "Warning",
                    "System": "Warning"
                }
            },

    The log file should be should be change to 
    {
        "Serilog": {
            "MinimumLevel": {
                "Default": "Debug",
                "Override": {
                    "": "Debug"
                }
            },
    after the server has been on, otherwise you'll see the error message. if you restart with this config you'll see very verbose logging, which isn't helpful. 

    The guide has now been updated here: https://github.com/jellyfin/jellyfin.org/pull/1660
    to say use 

    {
        "Serilog": {
            "MinimumLevel": {
                "Default": "Debug",
            },

    You can set this at any point; it won't get that error now and will fallback to verbose logging.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode