Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingSetup ¶
type LoggingSetup struct {
// contains filtered or unexported fields
}
func NewLoggingSetup ¶
func NewLoggingSetup() (*LoggingSetup, error)
func (*LoggingSetup) Logger ¶
func (s *LoggingSetup) Logger() *zap.Logger
func (*LoggingSetup) ReplaceGlobals ¶
func (s *LoggingSetup) ReplaceGlobals() func()
ReplaceGlobals replaces the global zap and standard loggers before returning a function to restore the original values.
func (*LoggingSetup) SetLevel ¶
func (s *LoggingSetup) SetLevel(level zapcore.Level)
Click to show internal directories.
Click to hide internal directories.