{"record":{"id":"8219bc872462c758","repo":"sirupsen/logrus","slug":"not-a-valid-logrus-level-d","errorCode":null,"errorMessage":"not a valid logrus level %d","messagePattern":"not a valid logrus level (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"logrus.go","lineNumber":83,"sourceCode":"\n// UnmarshalText implements encoding.TextUnmarshaler.\nfunc (level *Level) UnmarshalText(text []byte) error {\n\tl, err := parseLevel(text)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\t*level = l\n\n\treturn nil\n}\n\nfunc (level Level) MarshalText() ([]byte, error) {\n\tswitch level {\n\tcase TraceLevel, DebugLevel, InfoLevel, WarnLevel, ErrorLevel, FatalLevel, PanicLevel:\n\t\treturn []byte(level.String()), nil\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"not a valid logrus level %d\", level)\n\t}\n}\n\n// AllLevels exposing all logging levels.\nvar AllLevels = []Level{\n\tPanicLevel,\n\tFatalLevel,\n\tErrorLevel,\n\tWarnLevel,\n\tInfoLevel,\n\tDebugLevel,\n\tTraceLevel,\n}\n\n// These are the different logging levels. You can set the logging level to log\n// on your instance of logger, obtained with [logrus.New].\nconst (\n\t// PanicLevel level, highest level of severity. Logs and then calls panic with the","sourceCodeStart":65,"sourceCodeEnd":101,"githubUrl":"https://github.com/sirupsen/logrus/blob/457e372460c7a80ca7c800b51ebeee5362aaa180/logrus.go#L65-L101","documentation":"Error \"not a valid logrus level %d\" thrown in sirupsen/logrus.","triggerScenarios":"Thrown at logrus.go:83 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"457e372460c7a80ca7c800b51ebeee5362aaa180","analyzedAt":"2026-08-16T02:52:47.002Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}