Test_DefaultFormatLogger() — fiber Function Reference
Architecture documentation for the Test_DefaultFormatLogger() function in default_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 23625bda_b612_53bc_0512_10ff9c555f32["Test_DefaultFormatLogger()"] a9657611_ab19_70f1_938f_e28c9f9093e5["default_test.go"] 23625bda_b612_53bc_0512_10ff9c555f32 -->|defined in| a9657611_ab19_70f1_938f_e28c9f9093e5 c0a2310f_9b11_adeb_4509_b1cbac2f3429["initDefaultLogger()"] 23625bda_b612_53bc_0512_10ff9c555f32 -->|calls| c0a2310f_9b11_adeb_4509_b1cbac2f3429 style 23625bda_b612_53bc_0512_10ff9c555f32 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
log/default_test.go lines 71–93
func Test_DefaultFormatLogger(t *testing.T) {
initDefaultLogger()
var w byteSliceWriter
SetOutput(&w)
Tracef("trace %s", work)
Debugf("received %s order", work)
Infof("starting %s", work)
Warnf("%s may fail", work)
Errorf("%s failed", work)
require.Panics(t, func() {
Panicf("%s panic", work)
})
require.Equal(t, "[Trace] trace work\n"+
"[Debug] received work order\n"+
"[Info] starting work\n"+
"[Warn] work may fail\n"+
"[Error] work failed\n"+
"[Panic] work panic\n", string(w.b))
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does Test_DefaultFormatLogger() do?
Test_DefaultFormatLogger() is a function in the fiber codebase, defined in log/default_test.go.
Where is Test_DefaultFormatLogger() defined?
Test_DefaultFormatLogger() is defined in log/default_test.go at line 71.
What does Test_DefaultFormatLogger() call?
Test_DefaultFormatLogger() calls 1 function(s): initDefaultLogger.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free