log

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

View Source
const LoggerMgo = "mgo"

LoggerMgo defines the name for the logger used for the mgo package

Variables

This section is empty.

Functions

func Disable

func Disable()

Disable disables logging for the mgo package by assigning a the nil implementation of ILogger

func Set

func Set(logger ILogger)

Set assigns a new ILogger instance to be used as the logger for the mgo package

Types

type ILogger added in v1.0.3

type ILogger interface {
	Debug(args ...interface{})
	Info(args ...interface{})
	Warn(args ...interface{})
	Error(args ...interface{})
}

func Get

func Get() ILogger

Get returns the current logger instance

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL