Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sirupsen/logrus
/ Reset
Method
Reset
hooks/test/test.go:87–91 ·
view source on GitHub ↗
Reset removes all Entries from this test hook.
()
Source
from the content-addressed store, hash-verified
85
86
// Reset removes all Entries from this test hook.
87
func
(t *Hook) Reset() {
88
t.mu.Lock()
89
defer
t.mu.Unlock()
90
t.Entries = make([]logrus.Entry, 0)
91
}
Callers
6
TestHookEntryIsPristine
Function · 0.80
TestTimeOverrideMultipleLogs
Function · 0.80
TestDoubleLoggingDoesntPrefixPreviousFields
Function · 0.80
TestNestedLoggingReportsCorrectCaller
Function · 0.80
log
Method · 0.80
TestAllHooks
Function · 0.80
Implementers
10
panickyHook
entry_test.go
DefaultFieldHook
example_default_field_value_test.go
TestHook
hook_test.go
ModifyHook
hook_test.go
ErrorHook
hook_test.go
HookCallFunc
hook_test.go
GlobalHook
example_global_hook_test.go
Hook
hooks/writer/writer.go
Hook
hooks/test/test.go
SyslogHook
hooks/syslog/syslog.go
Calls
2
Lock
Method · 0.80
Unlock
Method · 0.80
Tested by
5
TestHookEntryIsPristine
Function · 0.64
TestTimeOverrideMultipleLogs
Function · 0.64
TestDoubleLoggingDoesntPrefixPreviousFields
Function · 0.64
TestNestedLoggingReportsCorrectCaller
Function · 0.64
TestAllHooks
Function · 0.64