mirror of
https://github.com/rs/zerolog
synced 2026-06-08 17:13:30 +00:00
chore: adding any function to context (#580)
* chore: adding any function to context * fixes
This commit is contained in:
committed by
GitHub
parent
158e4ad5c3
commit
802c88f065
@@ -379,6 +379,11 @@ func (c Context) Interface(key string, i interface{}) Context {
|
||||
return c
|
||||
}
|
||||
|
||||
// Any is a wrapper around Context.Interface.
|
||||
func (c Context) Any(key string, i interface{}) Context {
|
||||
return c.Interface(key, i)
|
||||
}
|
||||
|
||||
type callerHook struct {
|
||||
callerSkipFrameCount int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user