Discover Packages
github.com/mikhno-s/zerologr
package
module
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Feb 5, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
zerologr
based on zapr and glogr
Expand ▾
Collapse ▴
Documentation
¶
func Errorf(format string , v ...interface{})
Errorf logs a formatted error level log to the console
func Infof(format string , v ...interface{})
Infof logs a formatted info level log to the console
Init creates new instances for logr.Logger
New returns a logr.Logger which is implemented by zerolog.
NewWithOptions returns a logr.Logger which is implemented by zerolog.
func Panicf(format string , v ...interface{})
Panicf (Panic) is not support by logr interface, leave just an error
type Config struct {
Level string `mapstructure:"level"`
}
Config seems like isn't somewhere used, so just leave it here to don't let old code fail
Options that can be passed to NewWithOptions
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.