forked from mirror/logrus
Add a small warning comment
This commit is contained in:
parent
cc6ca6f305
commit
7e4197a54f
|
@ -9,6 +9,9 @@ import (
|
|||
|
||||
// Hook is a hook designed for dealing with logs in test scenarios.
|
||||
type Hook struct {
|
||||
// Entries is an array of all entries that have been received by this hook.
|
||||
// For safe access, use the AllEntries() method, rather than reading this
|
||||
// value directly.
|
||||
Entries []*logrus.Entry
|
||||
mu sync.RWMutex
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue