SYMBOL INDEX (490 symbols across 46 files) FILE: alt_exit.go function runHandler (line 32) | func runHandler(handler func()) { function runHandlers (line 42) | func runHandlers() { function Exit (line 49) | func Exit(code int) { function RegisterExitHandler (line 62) | func RegisterExitHandler(handler func()) { function DeferExitHandler (line 74) | func DeferExitHandler(handler func()) { FILE: alt_exit_test.go function TestRegister (line 17) | func TestRegister(t *testing.T) { function TestDefer (line 41) | func TestDefer(t *testing.T) { function TestHandler (line 65) | func TestHandler(t *testing.T) { function appendLine (line 94) | func appendLine(path, s string) { function assertFileContent (line 107) | func assertFileContent(t *testing.T, path, want string, childOut []byte) { constant tokenPrefix (line 120) | tokenPrefix = "reexectest-" function argv0Token (line 123) | func argv0Token(t *testing.T, name string) string { function reexecTest (line 130) | func reexecTest(t *testing.T, name string, f func(t *testing.T)) bool { function reexecCommand (line 152) | func reexecCommand(t *testing.T, name string, args ...string) *exec.Cmd { FILE: buffer_pool.go type BufferPool (line 16) | type BufferPool interface type defaultPool (line 21) | type defaultPool struct method Put (line 25) | func (p *defaultPool) Put(buf *bytes.Buffer) { method Get (line 29) | func (p *defaultPool) Get() *bytes.Buffer { function SetBufferPool (line 35) | func SetBufferPool(bp BufferPool) { FILE: entry.go constant maximumCallerDepth (line 31) | maximumCallerDepth int = 25 constant knownLogrusFrames (line 32) | knownLogrusFrames int = 4 type Entry (line 52) | type Entry struct method Dup (line 106) | func (entry *Entry) Dup() *Entry { method Bytes (line 117) | func (entry *Entry) Bytes() ([]byte, error) { method String (line 136) | func (entry *Entry) String() (string, error) { method WithError (line 147) | func (entry *Entry) WithError(err error) *Entry { method WithContext (line 164) | func (entry *Entry) WithContext(ctx context.Context) *Entry { method WithField (line 175) | func (entry *Entry) WithField(key string, value any) *Entry { method WithFields (line 180) | func (entry *Entry) WithFields(fields Fields) *Entry { method WithTime (line 207) | func (entry *Entry) WithTime(t time.Time) *Entry { method HasCaller (line 275) | func (entry Entry) HasCaller() bool { method log (line 279) | func (entry *Entry) log(level Level, msg string) { method getBufferPool (line 324) | func (entry *Entry) getBufferPool() (pool BufferPool) { method fireHooks (line 331) | func (entry *Entry) fireHooks(hooks []Hook) { method write (line 340) | func (entry *Entry) write() { method Log (line 366) | func (entry *Entry) Log(level Level, args ...any) { method Trace (line 372) | func (entry *Entry) Trace(args ...any) { method Debug (line 376) | func (entry *Entry) Debug(args ...any) { method Print (line 380) | func (entry *Entry) Print(args ...any) { method Info (line 384) | func (entry *Entry) Info(args ...any) { method Warn (line 388) | func (entry *Entry) Warn(args ...any) { method Warning (line 392) | func (entry *Entry) Warning(args ...any) { method Error (line 396) | func (entry *Entry) Error(args ...any) { method Fatal (line 400) | func (entry *Entry) Fatal(args ...any) { method Panic (line 405) | func (entry *Entry) Panic(args ...any) { method Logf (line 411) | func (entry *Entry) Logf(level Level, format string, args ...any) { method Tracef (line 417) | func (entry *Entry) Tracef(format string, args ...any) { method Debugf (line 421) | func (entry *Entry) Debugf(format string, args ...any) { method Infof (line 425) | func (entry *Entry) Infof(format string, args ...any) { method Printf (line 429) | func (entry *Entry) Printf(format string, args ...any) { method Warnf (line 433) | func (entry *Entry) Warnf(format string, args ...any) { method Warningf (line 437) | func (entry *Entry) Warningf(format string, args ...any) { method Errorf (line 441) | func (entry *Entry) Errorf(format string, args ...any) { method Fatalf (line 445) | func (entry *Entry) Fatalf(format string, args ...any) { method Panicf (line 450) | func (entry *Entry) Panicf(format string, args ...any) { method Logln (line 456) | func (entry *Entry) Logln(level Level, args ...any) { method Traceln (line 462) | func (entry *Entry) Traceln(args ...any) { method Debugln (line 466) | func (entry *Entry) Debugln(args ...any) { method Infoln (line 470) | func (entry *Entry) Infoln(args ...any) { method Println (line 474) | func (entry *Entry) Println(args ...any) { method Warnln (line 478) | func (entry *Entry) Warnln(args ...any) { method Warningln (line 482) | func (entry *Entry) Warningln(args ...any) { method Errorln (line 486) | func (entry *Entry) Errorln(args ...any) { method Fatalln (line 490) | func (entry *Entry) Fatalln(args ...any) { method Panicln (line 495) | func (entry *Entry) Panicln(args ...any) { method sprintlnn (line 503) | func (entry *Entry) sprintlnn(args ...any) string { function NewEntry (line 93) | func NewEntry(logger *Logger) *Entry { function getPackageName (line 219) | func getPackageName(f string) string { function getCaller (line 234) | func getCaller() *runtime.Frame { FILE: entry_bench_test.go function BenchmarkEntry_WithError (line 11) | func BenchmarkEntry_WithError(b *testing.B) { function BenchmarkEntry_WithField_Chain (line 22) | func BenchmarkEntry_WithField_Chain(b *testing.B) { function BenchmarkEntry_WithFields (line 40) | func BenchmarkEntry_WithFields(b *testing.B) { function benchmarkEntryInfo (line 88) | func benchmarkEntryInfo(b *testing.B, reportCaller bool) { function BenchmarkEntry_ReportCaller_NoCaller (line 110) | func BenchmarkEntry_ReportCaller_NoCaller(b *testing.B) { benchmarkEnt... function BenchmarkEntry_ReportCaller_WithCaller (line 111) | func BenchmarkEntry_ReportCaller_WithCaller(b *testing.B) { benchmarkEnt... function caller4 (line 114) | func caller4(entry *logrus.Entry) { caller3(entry) } function caller3 (line 117) | func caller3(entry *logrus.Entry) { caller2(entry) } function caller2 (line 120) | func caller2(entry *logrus.Entry) { caller1(entry) } function caller1 (line 123) | func caller1(entry *logrus.Entry) { entry.Info("test message") } function benchmarkEntryReportCallerDepth4 (line 129) | func benchmarkEntryReportCallerDepth4(b *testing.B, reportCaller bool) { function BenchmarkEntry_ReportCaller_NoCaller_Depth4 (line 151) | func BenchmarkEntry_ReportCaller_NoCaller_Depth4(b *testing.B) { function BenchmarkEntry_ReportCaller_WithCaller_Depth4 (line 155) | func BenchmarkEntry_ReportCaller_WithCaller_Depth4(b *testing.B) { FILE: entry_test.go type contextKeyType (line 18) | type contextKeyType function TestEntryWithError (line 20) | func TestEntryWithError(t *testing.T) { function TestEntryWithContext (line 39) | func TestEntryWithContext(t *testing.T) { function TestEntryWithContextCopiesData (line 53) | func TestEntryWithContextCopiesData(t *testing.T) { function TestEntryWithTimeCopiesData (line 96) | func TestEntryWithTimeCopiesData(t *testing.T) { function TestEntryPanicln (line 131) | func TestEntryPanicln(t *testing.T) { function TestEntryPanicf (line 153) | func TestEntryPanicf(t *testing.T) { function TestEntryPanic (line 175) | func TestEntryPanic(t *testing.T) { constant badMessage (line 198) | badMessage = "this is going to panic" constant panicMessage (line 199) | panicMessage = "this is broken" type panickyHook (line 202) | type panickyHook struct method Levels (line 204) | func (p *panickyHook) Levels() []logrus.Level { method Fire (line 208) | func (p *panickyHook) Fire(entry *logrus.Entry) error { function TestEntryHooksPanic (line 216) | func TestEntryHooksPanic(t *testing.T) { function TestEntryWithIncorrectField (line 235) | func TestEntryWithIncorrectField(t *testing.T) { function getErr (line 261) | func getErr(t *testing.T, e *logrus.Entry) string { function TestEntryLogfLevel (line 274) | func TestEntryLogfLevel(t *testing.T) { function TestEntryLoggerMutationRace (line 288) | func TestEntryLoggerMutationRace(t *testing.T) { type noopHook (line 316) | type noopHook struct method Levels (line 318) | func (noopHook) Levels() []logrus.Level { return logrus.AllLevels } method Fire (line 319) | func (noopHook) Fire(*logrus.Entry) error { return nil } type nopBufferPool (line 321) | type nopBufferPool struct method Get (line 323) | func (nopBufferPool) Get() *bytes.Buffer { return new(bytes.Buffer) } method Put (line 324) | func (nopBufferPool) Put(*bytes.Buffer) {} function runEntryLoggerRace (line 326) | func runEntryLoggerRace(t *testing.T, mutate func(logger *logrus.Logger)) { type reentrantValue (line 371) | type reentrantValue struct method MarshalJSON (line 375) | func (r reentrantValue) MarshalJSON() ([]byte, error) { function TestEntryReentrantLoggingDeadlock (line 383) | func TestEntryReentrantLoggingDeadlock(t *testing.T) { FILE: example_basic_test.go function Example_basic (line 9) | func Example_basic() { FILE: example_custom_caller_test.go function ExampleJSONFormatter_CallerPrettyfier (line 12) | func ExampleJSONFormatter_CallerPrettyfier() { FILE: example_default_field_value_test.go type DefaultFieldHook (line 9) | type DefaultFieldHook struct method Levels (line 13) | func (h *DefaultFieldHook) Levels() []logrus.Level { method Fire (line 17) | func (h *DefaultFieldHook) Fire(e *logrus.Entry) error { function ExampleDefaultFieldHook (line 22) | func ExampleDefaultFieldHook() { FILE: example_function_test.go function TestLogger_LogFn (line 11) | func TestLogger_LogFn(t *testing.T) { FILE: example_global_hook_test.go type GlobalHook (line 11) | type GlobalHook struct method Levels (line 13) | func (h *GlobalHook) Levels() []logrus.Level { method Fire (line 17) | func (h *GlobalHook) Fire(e *logrus.Entry) error { function ExampleGlobalHook (line 22) | func ExampleGlobalHook() { FILE: example_hook_test.go function Example_hook (line 14) | func Example_hook() { FILE: exported.go function StandardLogger (line 13) | func StandardLogger() *Logger { function SetOutput (line 18) | func SetOutput(out io.Writer) { function SetFormatter (line 23) | func SetFormatter(formatter Formatter) { function SetReportCaller (line 29) | func SetReportCaller(include bool) { function SetLevel (line 34) | func SetLevel(level Level) { function GetLevel (line 39) | func GetLevel() Level { function IsLevelEnabled (line 44) | func IsLevelEnabled(level Level) bool { function AddHook (line 49) | func AddHook(hook Hook) { function WithError (line 54) | func WithError(err error) *Entry { function WithContext (line 59) | func WithContext(ctx context.Context) *Entry { function WithField (line 68) | func WithField(key string, value any) *Entry { function WithFields (line 78) | func WithFields(fields Fields) *Entry { function WithTime (line 87) | func WithTime(t time.Time) *Entry { function Trace (line 92) | func Trace(args ...any) { function Debug (line 97) | func Debug(args ...any) { function Print (line 102) | func Print(args ...any) { function Info (line 107) | func Info(args ...any) { function Warn (line 112) | func Warn(args ...any) { function Warning (line 117) | func Warning(args ...any) { function Error (line 122) | func Error(args ...any) { function Panic (line 127) | func Panic(args ...any) { function Fatal (line 132) | func Fatal(args ...any) { function TraceFn (line 137) | func TraceFn(fn LogFunction) { function DebugFn (line 142) | func DebugFn(fn LogFunction) { function PrintFn (line 147) | func PrintFn(fn LogFunction) { function InfoFn (line 152) | func InfoFn(fn LogFunction) { function WarnFn (line 157) | func WarnFn(fn LogFunction) { function WarningFn (line 162) | func WarningFn(fn LogFunction) { function ErrorFn (line 167) | func ErrorFn(fn LogFunction) { function PanicFn (line 172) | func PanicFn(fn LogFunction) { function FatalFn (line 177) | func FatalFn(fn LogFunction) { function Tracef (line 182) | func Tracef(format string, args ...any) { function Debugf (line 187) | func Debugf(format string, args ...any) { function Printf (line 192) | func Printf(format string, args ...any) { function Infof (line 197) | func Infof(format string, args ...any) { function Warnf (line 202) | func Warnf(format string, args ...any) { function Warningf (line 207) | func Warningf(format string, args ...any) { function Errorf (line 212) | func Errorf(format string, args ...any) { function Panicf (line 217) | func Panicf(format string, args ...any) { function Fatalf (line 222) | func Fatalf(format string, args ...any) { function Traceln (line 227) | func Traceln(args ...any) { function Debugln (line 232) | func Debugln(args ...any) { function Println (line 237) | func Println(args ...any) { function Infoln (line 242) | func Infoln(args ...any) { function Warnln (line 247) | func Warnln(args ...any) { function Warningln (line 252) | func Warningln(args ...any) { function Errorln (line 257) | func Errorln(args ...any) { function Panicln (line 262) | func Panicln(args ...any) { function Fatalln (line 267) | func Fatalln(args ...any) { FILE: formatter.go constant defaultTimestampFormat (line 9) | defaultTimestampFormat = time.RFC3339 constant defaultFields (line 16) | defaultFields = 3 constant FieldKeyMsg (line 21) | FieldKeyMsg = "msg" constant FieldKeyLevel (line 22) | FieldKeyLevel = "level" constant FieldKeyTime (line 23) | FieldKeyTime = "time" constant FieldKeyLogrusError (line 24) | FieldKeyLogrusError = "logrus_error" constant FieldKeyFunc (line 25) | FieldKeyFunc = "func" constant FieldKeyFile (line 26) | FieldKeyFile = "file" type Formatter (line 39) | type Formatter interface function prefixFieldClashes (line 55) | func prefixFieldClashes(data Fields, fieldMap FieldMap, reportCaller boo... FILE: formatter_bench_test.go type benchStringer (line 11) | type benchStringer method String (line 13) | func (s benchStringer) String() string { return string(s) } function BenchmarkZeroTextFormatter (line 87) | func BenchmarkZeroTextFormatter(b *testing.B) { function BenchmarkOneStringTextFormatter (line 91) | func BenchmarkOneStringTextFormatter(b *testing.B) { function BenchmarkOneNumericTextFormatter (line 95) | func BenchmarkOneNumericTextFormatter(b *testing.B) { function BenchmarkOneBoolTextFormatter (line 99) | func BenchmarkOneBoolTextFormatter(b *testing.B) { function BenchmarkNumericTextFormatter (line 103) | func BenchmarkNumericTextFormatter(b *testing.B) { function BenchmarkBoolTextFormatter (line 107) | func BenchmarkBoolTextFormatter(b *testing.B) { function BenchmarkStringerTextFormatter (line 111) | func BenchmarkStringerTextFormatter(b *testing.B) { function BenchmarkErrorTextFormatter (line 115) | func BenchmarkErrorTextFormatter(b *testing.B) { function BenchmarkSmallTextFormatter (line 119) | func BenchmarkSmallTextFormatter(b *testing.B) { function BenchmarkLargeTextFormatter (line 123) | func BenchmarkLargeTextFormatter(b *testing.B) { function BenchmarkSmallColoredTextFormatter (line 127) | func BenchmarkSmallColoredTextFormatter(b *testing.B) { function BenchmarkLargeColoredTextFormatter (line 131) | func BenchmarkLargeColoredTextFormatter(b *testing.B) { function BenchmarkSmallJSONFormatter (line 135) | func BenchmarkSmallJSONFormatter(b *testing.B) { function BenchmarkLargeJSONFormatter (line 139) | func BenchmarkLargeJSONFormatter(b *testing.B) { function doBenchmark (line 145) | func doBenchmark(b *testing.B, formatter logrus.Formatter, fields logrus... FILE: hook_test.go type RecordingFormatter (line 25) | type RecordingFormatter struct method Format (line 30) | func (f *RecordingFormatter) Format(entry *Entry) ([]byte, error) { type TestHook (line 36) | type TestHook struct method Fire (line 40) | func (hook *TestHook) Fire(entry *Entry) error { method Levels (line 45) | func (hook *TestHook) Levels() []Level { function TestHookFires (line 57) | func TestHookFires(t *testing.T) { type ModifyHook (line 70) | type ModifyHook struct method Fire (line 74) | func (hook *ModifyHook) Fire(entry *Entry) error { method Levels (line 80) | func (hook *ModifyHook) Levels() []Level { function TestHookCanModifyEntry (line 92) | func TestHookCanModifyEntry(t *testing.T) { function TestCanFireMultipleHooks (line 103) | func TestCanFireMultipleHooks(t *testing.T) { type SingleLevelModifyHook (line 118) | type SingleLevelModifyHook struct method Levels (line 122) | func (h *SingleLevelModifyHook) Levels() []Level { function TestHookEntryIsPristine (line 130) | func TestHookEntryIsPristine(t *testing.T) { type ErrorHook (line 157) | type ErrorHook struct method Fire (line 161) | func (hook *ErrorHook) Fire(entry *Entry) error { method Levels (line 166) | func (hook *ErrorHook) Levels() []Level { function TestErrorHookShouldntFireOnInfo (line 172) | func TestErrorHookShouldntFireOnInfo(t *testing.T) { function TestErrorHookShouldFireOnError (line 183) | func TestErrorHookShouldFireOnError(t *testing.T) { function TestAddHookRace (line 194) | func TestAddHookRace(t *testing.T) { function TestAddHookRace2 (line 215) | func TestAddHookRace2(t *testing.T) { type HookCallFunc (line 237) | type HookCallFunc struct method Levels (line 241) | func (h *HookCallFunc) Levels() []Level { method Fire (line 245) | func (h *HookCallFunc) Fire(e *Entry) error { function TestHookFireOrder (line 250) | func TestHookFireOrder(t *testing.T) { FILE: hooks.go type Hook (line 8) | type Hook interface type LevelHooks (line 14) | type LevelHooks method Add (line 18) | func (hooks LevelHooks) Add(hook Hook) { method Fire (line 26) | func (hooks LevelHooks) Fire(level Level, entry *Entry) error { FILE: hooks/slog/slog.go type LevelMapper (line 15) | type LevelMapper type SlogHook (line 18) | type SlogHook struct method toSlogLevel (line 45) | func (h *SlogHook) toSlogLevel(level logrus.Level) slog.Leveler { method Levels (line 66) | func (h *SlogHook) Levels() []logrus.Level { method Fire (line 74) | func (h *SlogHook) Fire(entry *logrus.Entry) error { function NewSlogHook (line 36) | func NewSlogHook(logger *slog.Logger) *SlogHook { FILE: hooks/slog/slog_test.go function TestSlogHook (line 18) | func TestSlogHook(t *testing.T) { type errorHandler (line 93) | type errorHandler struct method Enabled (line 97) | func (h *errorHandler) Enabled(context.Context, slog.Level) bool { method Handle (line 101) | func (h *errorHandler) Handle(context.Context, slog.Record) error { method WithAttrs (line 105) | func (h *errorHandler) WithAttrs([]slog.Attr) slog.Handler { method WithGroup (line 109) | func (h *errorHandler) WithGroup(string) slog.Handler { function TestSlogHook_error_propagates (line 113) | func TestSlogHook_error_propagates(t *testing.T) { function TestSlogHook_source (line 140) | func TestSlogHook_source(t *testing.T) { FILE: hooks/syslog/syslog.go type SyslogHook (line 14) | type SyslogHook struct method Fire (line 35) | func (hook *SyslogHook) Fire(entry *logrus.Entry) error { method Levels (line 60) | func (hook *SyslogHook) Levels() []logrus.Level { function NewSyslogHook (line 30) | func NewSyslogHook(network, raddr string, priority syslog.Priority, tag ... FILE: hooks/syslog/syslog_test.go function TestLocalhostAddAndPrint (line 14) | func TestLocalhostAddAndPrint(t *testing.T) { FILE: hooks/test/test.go type Hook (line 13) | type Hook struct method Fire (line 47) | func (t *Hook) Fire(e *logrus.Entry) error { method Levels (line 54) | func (t *Hook) Levels() []logrus.Level { method LastEntry (line 59) | func (t *Hook) LastEntry() *logrus.Entry { method AllEntries (line 70) | func (t *Hook) AllEntries() []*logrus.Entry { method Reset (line 83) | func (t *Hook) Reset() { function NewGlobal (line 24) | func NewGlobal() *Hook { function NewLocal (line 32) | func NewLocal(logger *logrus.Logger) *Hook { function NewNullLogger (line 40) | func NewNullLogger() (*logrus.Logger, *Hook) { FILE: hooks/test/test_test.go function TestAllHooks (line 15) | func TestAllHooks(t *testing.T) { function TestLoggingWithHooksRace (line 53) | func TestLoggingWithHooksRace(t *testing.T) { function TestFatalWithAlternateExit (line 86) | func TestFatalWithAlternateExit(t *testing.T) { function TestNewLocal (line 98) | func TestNewLocal(t *testing.T) { FILE: hooks/writer/writer.go type Hook (line 10) | type Hook struct method Fire (line 19) | func (hook *Hook) Fire(entry *logrus.Entry) error { method Levels (line 29) | func (hook *Hook) Levels() []logrus.Level { FILE: hooks/writer/writer_test.go function TestDifferentLevelsGoToDifferentWriters (line 13) | func TestDifferentLevelsGoToDifferentWriters(t *testing.T) { FILE: internal/testutils/testutils.go function LogAndAssertJSON (line 15) | func LogAndAssertJSON(t *testing.T, log func(*Logger), assertions func(f... function LogAndAssertText (line 31) | func LogAndAssertText(t *testing.T, log func(*Logger), assertions func(f... FILE: json_formatter.go type fieldKey (line 11) | type fieldKey type FieldMap (line 14) | type FieldMap method resolve (line 16) | func (f FieldMap) resolve(key fieldKey) string { type JSONFormatter (line 25) | type JSONFormatter struct method Format (line 64) | func (f *JSONFormatter) Format(entry *Entry) ([]byte, error) { FILE: json_formatter_test.go function TestErrorNotLost (line 15) | func TestErrorNotLost(t *testing.T) { function TestErrorNotLostOnFieldNotNamedError (line 34) | func TestErrorNotLostOnFieldNotNamedError(t *testing.T) { function TestFieldClashWithTime (line 53) | func TestFieldClashWithTime(t *testing.T) { function TestFieldClashWithMsg (line 76) | func TestFieldClashWithMsg(t *testing.T) { function TestFieldClashWithLevel (line 95) | func TestFieldClashWithLevel(t *testing.T) { function TestFieldClashWithRemappedFields (line 114) | func TestFieldClashWithRemappedFields(t *testing.T) { function TestFieldsInNestedDictionary (line 168) | func TestFieldsInNestedDictionary(t *testing.T) { function TestJSONEntryFieldValueError (line 210) | func TestJSONEntryFieldValueError(t *testing.T) { function TestJSONEntryEndsWithNewline (line 287) | func TestJSONEntryEndsWithNewline(t *testing.T) { function TestJSONMessageKey (line 300) | func TestJSONMessageKey(t *testing.T) { function TestJSONLevelKey (line 317) | func TestJSONLevelKey(t *testing.T) { function TestJSONTimeKey (line 334) | func TestJSONTimeKey(t *testing.T) { function TestFieldDoesNotClashWithCaller (line 351) | func TestFieldDoesNotClashWithCaller(t *testing.T) { function TestFieldClashWithCaller (line 371) | func TestFieldClashWithCaller(t *testing.T) { function TestJSONDisableTimestamp (line 401) | func TestJSONDisableTimestamp(t *testing.T) { function TestJSONEnableTimestamp (line 416) | func TestJSONEnableTimestamp(t *testing.T) { function TestJSONDisableHTMLEscape (line 429) | func TestJSONDisableHTMLEscape(t *testing.T) { function TestJSONEnableHTMLEscape (line 442) | func TestJSONEnableHTMLEscape(t *testing.T) { FILE: level.go constant ansiReset (line 9) | ansiReset = "\x1b[0m" constant ansiRed (line 10) | ansiRed = "\x1b[31m" constant ansiYellow (line 11) | ansiYellow = "\x1b[33m" constant ansiCyan (line 12) | ansiCyan = "\x1b[36m" constant ansiWhite (line 13) | ansiWhite = "\x1b[37m" type lvlPrefix (line 16) | type lvlPrefix struct function colorize (line 22) | func colorize(level Level, s string) string { function formatLevel (line 37) | func formatLevel(level Level, disableTrunc, pad bool, maxLen int) string { function levelPrefix (line 82) | func levelPrefix(level Level, disableTrunc, pad bool) string { FILE: level_test.go function TestLevelJsonEncoding (line 12) | func TestLevelJsonEncoding(t *testing.T) { function TestLevelUnmarshalText (line 27) | func TestLevelUnmarshalText(t *testing.T) { function TestLevelMarshalText (line 40) | func TestLevelMarshalText(t *testing.T) { FILE: logger.go type LogFunction (line 15) | type LogFunction type Logger (line 17) | type Logger struct method newEntry (line 102) | func (logger *Logger) newEntry() *Entry { method releaseEntry (line 110) | func (logger *Logger) releaseEntry(entry *Entry) { method WithField (line 119) | func (logger *Logger) WithField(key string, value any) *Entry { method WithFields (line 127) | func (logger *Logger) WithFields(fields Fields) *Entry { method WithError (line 135) | func (logger *Logger) WithError(err error) *Entry { method WithContext (line 142) | func (logger *Logger) WithContext(ctx context.Context) *Entry { method WithTime (line 149) | func (logger *Logger) WithTime(t time.Time) *Entry { method Logf (line 155) | func (logger *Logger) Logf(level Level, format string, args ...any) { method Tracef (line 163) | func (logger *Logger) Tracef(format string, args ...any) { method Debugf (line 167) | func (logger *Logger) Debugf(format string, args ...any) { method Infof (line 171) | func (logger *Logger) Infof(format string, args ...any) { method Printf (line 175) | func (logger *Logger) Printf(format string, args ...any) { method Warnf (line 181) | func (logger *Logger) Warnf(format string, args ...any) { method Warningf (line 185) | func (logger *Logger) Warningf(format string, args ...any) { method Errorf (line 189) | func (logger *Logger) Errorf(format string, args ...any) { method Fatalf (line 193) | func (logger *Logger) Fatalf(format string, args ...any) { method Panicf (line 198) | func (logger *Logger) Panicf(format string, args ...any) { method Log (line 205) | func (logger *Logger) Log(level Level, args ...any) { method LogFn (line 213) | func (logger *Logger) LogFn(level Level, fn LogFunction) { method Trace (line 221) | func (logger *Logger) Trace(args ...any) { method Debug (line 225) | func (logger *Logger) Debug(args ...any) { method Info (line 229) | func (logger *Logger) Info(args ...any) { method Print (line 233) | func (logger *Logger) Print(args ...any) { method Warn (line 239) | func (logger *Logger) Warn(args ...any) { method Warning (line 243) | func (logger *Logger) Warning(args ...any) { method Error (line 247) | func (logger *Logger) Error(args ...any) { method Fatal (line 251) | func (logger *Logger) Fatal(args ...any) { method Panic (line 256) | func (logger *Logger) Panic(args ...any) { method TraceFn (line 260) | func (logger *Logger) TraceFn(fn LogFunction) { method DebugFn (line 264) | func (logger *Logger) DebugFn(fn LogFunction) { method InfoFn (line 268) | func (logger *Logger) InfoFn(fn LogFunction) { method PrintFn (line 272) | func (logger *Logger) PrintFn(fn LogFunction) { method WarnFn (line 278) | func (logger *Logger) WarnFn(fn LogFunction) { method WarningFn (line 282) | func (logger *Logger) WarningFn(fn LogFunction) { method ErrorFn (line 286) | func (logger *Logger) ErrorFn(fn LogFunction) { method FatalFn (line 290) | func (logger *Logger) FatalFn(fn LogFunction) { method PanicFn (line 295) | func (logger *Logger) PanicFn(fn LogFunction) { method Logln (line 299) | func (logger *Logger) Logln(level Level, args ...any) { method Traceln (line 307) | func (logger *Logger) Traceln(args ...any) { method Debugln (line 311) | func (logger *Logger) Debugln(args ...any) { method Infoln (line 315) | func (logger *Logger) Infoln(args ...any) { method Println (line 319) | func (logger *Logger) Println(args ...any) { method Warnln (line 325) | func (logger *Logger) Warnln(args ...any) { method Warningln (line 329) | func (logger *Logger) Warningln(args ...any) { method Errorln (line 333) | func (logger *Logger) Errorln(args ...any) { method Fatalln (line 337) | func (logger *Logger) Fatalln(args ...any) { method Panicln (line 342) | func (logger *Logger) Panicln(args ...any) { method Exit (line 346) | func (logger *Logger) Exit(code int) { method SetNoLock (line 357) | func (logger *Logger) SetNoLock() { method level (line 361) | func (logger *Logger) level() Level { method SetLevel (line 366) | func (logger *Logger) SetLevel(level Level) { method GetLevel (line 371) | func (logger *Logger) GetLevel() Level { method AddHook (line 376) | func (logger *Logger) AddHook(hook Hook) { method hooksForLevel (line 384) | func (logger *Logger) hooksForLevel(level Level) []Hook { method IsLevelEnabled (line 398) | func (logger *Logger) IsLevelEnabled(level Level) bool { method SetFormatter (line 403) | func (logger *Logger) SetFormatter(formatter Formatter) { method SetOutput (line 410) | func (logger *Logger) SetOutput(output io.Writer) { method SetReportCaller (line 416) | func (logger *Logger) SetReportCaller(reportCaller bool) { method ReplaceHooks (line 423) | func (logger *Logger) ReplaceHooks(hooks LevelHooks) LevelHooks { method SetBufferPool (line 432) | func (logger *Logger) SetBufferPool(pool BufferPool) { type MutexWrap (line 58) | type MutexWrap struct method Lock (line 63) | func (mw *MutexWrap) Lock() { method Unlock (line 69) | func (mw *MutexWrap) Unlock() { method Disable (line 75) | func (mw *MutexWrap) Disable() { function New (line 91) | func New() *Logger { FILE: logger_bench_test.go function BenchmarkDummyLogger (line 11) | func BenchmarkDummyLogger(b *testing.B) { function BenchmarkDummyLoggerNoLock (line 20) | func BenchmarkDummyLoggerNoLock(b *testing.B) { function doLoggerBenchmark (line 29) | func doLoggerBenchmark(b *testing.B, out *os.File, formatter logrus.Form... function doLoggerBenchmarkNoLock (line 44) | func doLoggerBenchmarkNoLock(b *testing.B, out *os.File, formatter logru... function BenchmarkLoggerJSONFormatter (line 60) | func BenchmarkLoggerJSONFormatter(b *testing.B) { function BenchmarkLoggerTextFormatter (line 64) | func BenchmarkLoggerTextFormatter(b *testing.B) { function doLoggerBenchmarkWithFormatter (line 68) | func doLoggerBenchmarkWithFormatter(b *testing.B, f logrus.Formatter) { FILE: logger_test.go function TestWarningAndWarninglnFormatting (line 12) | func TestWarningAndWarninglnFormatting(t *testing.T) { type testBufferPool (line 35) | type testBufferPool struct method Get (line 40) | func (p *testBufferPool) Get() *bytes.Buffer { method Put (line 45) | func (p *testBufferPool) Put(buf *bytes.Buffer) { function TestLogger_SetBufferPool (line 49) | func TestLogger_SetBufferPool(t *testing.T) { FILE: logrus.go type Fields (line 10) | type Fields type Level (line 15) | type Level method String (line 18) | func (level Level) String() string { method UnmarshalText (line 67) | func (level *Level) UnmarshalText(text []byte) error { method MarshalText (line 78) | func (level Level) MarshalText() ([]byte, error) { function ParseLevel (line 40) | func ParseLevel(lvl string) (Level, error) { function parseLevel (line 44) | func parseLevel(b []byte) (Level, error) { constant PanicLevel (line 103) | PanicLevel Level = iota constant FatalLevel (line 106) | FatalLevel constant ErrorLevel (line 109) | ErrorLevel constant WarnLevel (line 111) | WarnLevel constant InfoLevel (line 114) | InfoLevel constant DebugLevel (line 116) | DebugLevel constant TraceLevel (line 118) | TraceLevel type StdLogger (line 131) | type StdLogger interface type FieldLogger (line 147) | type FieldLogger interface type Ext1FieldLogger (line 190) | type Ext1FieldLogger interface FILE: logrus_test.go function TestReportCallerWhenConfigured (line 26) | func TestReportCallerWhenConfigured(t *testing.T) { function logSomething (line 69) | func logSomething(t *testing.T, message string) Fields { function TestReportCallerHelperDirect (line 91) | func TestReportCallerHelperDirect(t *testing.T) { function TestReportCallerHelperViaPointer (line 100) | func TestReportCallerHelperViaPointer(t *testing.T) { function TestPrint (line 109) | func TestPrint(t *testing.T) { function TestInfo (line 118) | func TestInfo(t *testing.T) { function TestWarn (line 127) | func TestWarn(t *testing.T) { function TestLog (line 136) | func TestLog(t *testing.T) { function TestInfolnShouldAddSpacesBetweenStrings (line 145) | func TestInfolnShouldAddSpacesBetweenStrings(t *testing.T) { function TestInfolnShouldAddSpacesBetweenStringAndNonstring (line 153) | func TestInfolnShouldAddSpacesBetweenStringAndNonstring(t *testing.T) { function TestInfolnShouldAddSpacesBetweenTwoNonStrings (line 161) | func TestInfolnShouldAddSpacesBetweenTwoNonStrings(t *testing.T) { function TestInfoShouldAddSpacesBetweenTwoNonStrings (line 169) | func TestInfoShouldAddSpacesBetweenTwoNonStrings(t *testing.T) { function TestInfoShouldNotAddSpacesBetweenStringAndNonstring (line 177) | func TestInfoShouldNotAddSpacesBetweenStringAndNonstring(t *testing.T) { function TestInfoShouldNotAddSpacesBetweenStrings (line 185) | func TestInfoShouldNotAddSpacesBetweenStrings(t *testing.T) { function TestWithFieldsShouldAllowAssignments (line 193) | func TestWithFieldsShouldAllowAssignments(t *testing.T) { function TestUserSuppliedFieldDoesNotOverwriteDefaults (line 223) | func TestUserSuppliedFieldDoesNotOverwriteDefaults(t *testing.T) { function TestUserSuppliedMsgFieldHasPrefix (line 231) | func TestUserSuppliedMsgFieldHasPrefix(t *testing.T) { function TestUserSuppliedTimeFieldHasPrefix (line 240) | func TestUserSuppliedTimeFieldHasPrefix(t *testing.T) { function TestUserSuppliedLevelFieldHasPrefix (line 248) | func TestUserSuppliedLevelFieldHasPrefix(t *testing.T) { function TestDefaultFieldsAreNotPrefixed (line 257) | func TestDefaultFieldsAreNotPrefixed(t *testing.T) { function TestWithTimeShouldOverrideTime (line 271) | func TestWithTimeShouldOverrideTime(t *testing.T) { function TestWithTimeShouldNotOverrideFields (line 281) | func TestWithTimeShouldNotOverrideFields(t *testing.T) { function TestWithFieldShouldNotOverrideTime (line 292) | func TestWithFieldShouldNotOverrideTime(t *testing.T) { function TestTimeOverrideMultipleLogs (line 303) | func TestTimeOverrideMultipleLogs(t *testing.T) { function TestDoubleLoggingDoesntPrefixPreviousFields (line 330) | func TestDoubleLoggingDoesntPrefixPreviousFields(t *testing.T) { function TestNestedLoggingReportsCorrectCaller (line 360) | func TestNestedLoggingReportsCorrectCaller(t *testing.T) { function logLoop (line 418) | func logLoop(iterations int, reportCaller bool) { function TestCallerReportingOverhead (line 432) | func TestCallerReportingOverhead(t *testing.T) { function TestConvertLevelToString (line 452) | func TestConvertLevelToString(t *testing.T) { function TestParseLevel (line 462) | func TestParseLevel(t *testing.T) { function TestLevelString (line 531) | func TestLevelString(t *testing.T) { function TestGetSetLevelRace (line 537) | func TestGetSetLevelRace(t *testing.T) { function TestLoggingRace (line 554) | func TestLoggingRace(t *testing.T) { function TestLoggingRaceWithHooksOnEntry (line 570) | func TestLoggingRaceWithHooksOnEntry(t *testing.T) { function TestReplaceHooks (line 622) | func TestReplaceHooks(t *testing.T) { function TestLogrusInterfaces (line 644) | func TestLogrusInterfaces(t *testing.T) { type channelWriter (line 666) | type channelWriter method Write (line 668) | func (cw channelWriter) Write(p []byte) (int, error) { function TestEntryWriter (line 673) | func TestEntryWriter(t *testing.T) { function TestLogLevelEnabled (line 691) | func TestLogLevelEnabled(t *testing.T) { function TestReportCallerOnTextFormatter (line 757) | func TestReportCallerOnTextFormatter(t *testing.T) { function TestSetReportCallerRace (line 770) | func TestSetReportCallerRace(t *testing.T) { FILE: terminal_check_appengine.go function checkIfTerminal (line 5) | func checkIfTerminal(_ any) bool { FILE: terminal_check_bsd.go constant ioctlReadTermios (line 7) | ioctlReadTermios = unix.TIOCGETA function isTerminal (line 9) | func isTerminal(fd int) bool { FILE: terminal_check_no_terminal.go function checkIfTerminal (line 5) | func checkIfTerminal(_ any) bool { FILE: terminal_check_notappengine.go function checkIfTerminal (line 10) | func checkIfTerminal(w io.Writer) bool { FILE: terminal_check_solaris.go function isTerminal (line 10) | func isTerminal(fd int) bool { FILE: terminal_check_unix.go constant ioctlReadTermios (line 7) | ioctlReadTermios = unix.TCGETS function isTerminal (line 9) | func isTerminal(fd int) bool { FILE: terminal_check_windows.go function checkIfTerminal (line 12) | func checkIfTerminal(w io.Writer) bool { FILE: text_formatter.go type TextFormatter (line 27) | type TextFormatter struct method isTerminal (line 104) | func (f *TextFormatter) isTerminal(entry *Entry) bool { method isColored (line 123) | func (f *TextFormatter) isColored(isTerminal bool) bool { method Format (line 142) | func (f *TextFormatter) Format(entry *Entry) ([]byte, error) { method printPlain (line 169) | func (f *TextFormatter) printPlain(b *bytes.Buffer, entry *Entry, keys... method printColored (line 244) | func (f *TextFormatter) printColored(b *bytes.Buffer, entry *Entry, ke... method appendKeyValue (line 305) | func (f *TextFormatter) appendKeyValue(b *bytes.Buffer, key string, va... method appendValue (line 314) | func (f *TextFormatter) appendValue(b *bytes.Buffer, value any) { method appendString (line 377) | func (f *TextFormatter) appendString(b *bytes.Buffer, s string) { method appendBytes (line 392) | func (f *TextFormatter) appendBytes(b *bytes.Buffer, bs []byte) { method appendNumeric (line 407) | func (f *TextFormatter) appendNumeric(b *bytes.Buffer, out []byte) { function needsQuoting (line 419) | func needsQuoting(s string) bool { function needsQuotingBytes (line 433) | func needsQuotingBytes(bs []byte) bool { function isSafeByte (line 444) | func isSafeByte(ch byte) bool { FILE: text_formatter_test.go function TestFormatting (line 19) | func TestFormatting(t *testing.T) { function TestQuoting (line 38) | func TestQuoting(t *testing.T) { function TestEscaping (line 132) | func TestEscaping(t *testing.T) { function TestEscaping_Interface (line 151) | func TestEscaping_Interface(t *testing.T) { function TestTimestampFormat (line 172) | func TestTimestampFormat(t *testing.T) { function TestDisableLevelTruncation (line 193) | func TestDisableLevelTruncation(t *testing.T) { function TestPadLevelText (line 235) | func TestPadLevelText(t *testing.T) { function TestDisableTimestampWithColoredOutput (line 321) | func TestDisableTimestampWithColoredOutput(t *testing.T) { function TestNewlineBehavior (line 330) | func TestNewlineBehavior(t *testing.T) { function TestTextFormatterFieldMap (line 353) | func TestTextFormatterFieldMap(t *testing.T) { function TestTextFormatterIsColored (line 392) | func TestTextFormatterIsColored(t *testing.T) { function unsetEnv (line 528) | func unsetEnv(t *testing.T, env string) { function TestCustomSorting (line 539) | func TestCustomSorting(t *testing.T) { function TestCustomSorting_FirstFormat (line 575) | func TestCustomSorting_FirstFormat(t *testing.T) { function TestTextEntryFieldValueError (line 626) | func TestTextEntryFieldValueError(t *testing.T) { FILE: writer.go method Writer (line 11) | func (logger *Logger) Writer() *io.PipeWriter { method WriterLevel (line 20) | func (logger *Logger) WriterLevel(level Level) *io.PipeWriter { method Writer (line 25) | func (entry *Entry) Writer() *io.PipeWriter { method WriterLevel (line 30) | func (entry *Entry) WriterLevel(level Level) *io.PipeWriter { method writerScanner (line 64) | func (entry *Entry) writerScanner(reader *io.PipeReader, printFunc func(... function writerFinalizer (line 98) | func writerFinalizer(writer *io.PipeWriter) { FILE: writer_test.go function ExampleLogger_Writer_httpServer (line 19) | func ExampleLogger_Writer_httpServer() { function ExampleLogger_Writer_stdlib (line 35) | func ExampleLogger_Writer_stdlib() { type bufferWithMu (line 45) | type bufferWithMu struct method Write (line 50) | func (b *bufferWithMu) Write(p []byte) (int, error) { method Read (line 56) | func (b *bufferWithMu) Read(p []byte) (int, error) { method String (line 62) | func (b *bufferWithMu) String() string { function TestWriterSplitNewlines (line 68) | func TestWriterSplitNewlines(t *testing.T) { function TestWriterSplitsMax64KB (line 95) | func TestWriterSplitsMax64KB(t *testing.T) {