{"record":{"id":"4dd083515cd3b6ce","repo":"slackhq/nebula","slug":"failed-to-apply-logging-config-s","errorCode":null,"errorMessage":"failed to apply logging config: %s","messagePattern":"failed to apply logging config: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/nebula-service/service.go","lineNumber":35,"sourceCode":"\tconfigPath *string\n\tbuild      string\n\tcontrol    *nebula.Control\n}\n\nfunc (p *program) Start(s service.Service) error {\n\t// Start should not block.\n\tlogger.Info(\"Nebula service starting.\")\n\n\tl := newPlatformLogger()\n\n\tc := config.NewC(l)\n\terr := c.Load(*p.configPath)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"failed to load config: %s\", err)\n\t}\n\n\tif err := logging.ApplyConfig(l, c); err != nil {\n\t\treturn fmt.Errorf(\"failed to apply logging config: %s\", err)\n\t}\n\tc.RegisterReloadCallback(func(c *config.C) {\n\t\tif err := logging.ApplyConfig(l, c); err != nil {\n\t\t\tl.Error(\"Failed to reconfigure logger on reload\", \"error\", err)\n\t\t}\n\t})\n\n\tp.control, err = nebula.Main(c, false, Build, l, nil)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tif err := p.control.Start(); err != nil {\n\t\treturn err\n\t}\n\n\t// Nebula can stop itself on a fatal packet reader error, make sure to log it if it happens.\n\tgo func() {","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/slackhq/nebula/blob/dd8f660c0ac37903ec4080ca4d3c861ba9342ceb/cmd/nebula-service/service.go#L17-L53","documentation":"Wrapping error in service Start: logging.ApplyConfig rejected the logging section of the loaded config — invalid level names, malformed outputs, or bad timestamps formats. The service aborts startup because logging could not be initialized; cause appended via %s. The same check runs again on config reload, where it is logged rather than returned.","triggerScenarios":"Thrown at cmd/nebula-service/service.go:35 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the logging: block (level, format, timestamps) per the documentation","Remove invalid log output destinations"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"dd8f660c0ac37903ec4080ca4d3c861ba9342ceb","analyzedAt":"2026-09-03T11:13:55.444Z","contentChangedAt":"2026-09-03T11:13:55.444Z","schemaVersion":2},"datasetVersion":"2026-09-10T17:17:09.494Z"}