logger

package
v0.36.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes the log file when necessary.

func Info

func Info(v ...interface{})

Info calls the default info logger to print the message using Println.

func Infof

func Infof(format string, v ...interface{})

Info calls the default info logger to print the message using Printf.

func InitLogFile

func InitLogFile(filename string, format string) error

InitLogFile initializes the logger factory to create loggers that print to a log file.

func NewDebug

func NewDebug(prefix string) *log.Logger

NewDebug returns a new logger for logging debug messages with given prefix to the log file or stdout.

func NewError

func NewError(prefix string) *log.Logger

NewError returns a new logger for logging errors with given prefix to the log file or stderr.

func NewInfo

func NewInfo(prefix string) *log.Logger

NewInfo returns a new logger for logging info with given prefix to the log file or stdout.

func NewNotice

func NewNotice(prefix string) *log.Logger

NewNotice returns a new logger for logging notice with given prefix to the log file or the status writer which forwards the notices to the invoker from the daemon.

Types

This section is empty.

Jump to

Keyboard shortcuts

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