logger

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WrapLogger

type WrapLogger struct {
	// contains filtered or unexported fields
}

WrapLogger is the implementation for a Logger.

func (*WrapLogger) EnableLog

func (l *WrapLogger) EnableLog(enable bool)

EnableLog controls whether print the message.

func (*WrapLogger) IsEnabled

func (l *WrapLogger) IsEnabled() bool

IsEnabled returns if logger is enabled.

func (*WrapLogger) Print

func (l *WrapLogger) Print(v ...interface{})

Print formats using the default formats for its operands and logs the message.

func (*WrapLogger) Printf

func (l *WrapLogger) Printf(format string, v ...interface{})

Printf formats according to a format specifier and logs the message.

Jump to

Keyboard shortcuts

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