log

package
v2.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, args ...interface{})

func DisplayGoc

func DisplayGoc()

func Donef

func Donef(format string, args ...interface{})

func Errorf

func Errorf(format string, args ...interface{})

func Fatalf

func Fatalf(format string, args ...interface{})

func Infof

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

func NewLogger

func NewLogger(debug bool)

func StartWait

func StartWait(message string)

func StopWait

func StopWait()

func Sync

func Sync()

func Warnf

func Warnf(format string, args ...interface{})

Types

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})

	Infof(format string, args ...interface{})

	Warnf(format string, args ...interface{})

	Fatalf(format string, args ...interface{})

	Errorf(format string, args ...interface{})

	Donef(format string, args ...interface{})

	StartWait(message string)
	StopWait()

	// Sync flushes cached log to disk, some log library needs this step
	Sync()
}

Logger defines common interface for logging

Jump to

Keyboard shortcuts

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