logger

package
v0.0.0-...-ee364c6 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_FILE_BYTES = 10 * 1024 * 1024
View Source
const MAX_FILE_COUNT = 1000
View Source
const MAX_MESSAGE_BYTES = 10 * 1024

Variables

This section is empty.

Functions

func Close

func Close()

func Debug

func Debug(message string)

func Error

func Error(message string)

func Info

func Info(message string)

func Init

func Init()

func MockConsoleLogger

func MockConsoleLogger(t *testing.T) *bytes.Buffer

func MockFileLogger

func MockFileLogger(t *testing.T) *bytes.Buffer

func NewLogger

func NewLogger(out io.Writer) *log.Logger

func Trace

func Trace(message string)

func Warning

func Warning(message string)

Types

type MyLogger

type MyLogger struct {
	StdOutLogger *log.Logger
	FileLogger   *log.Logger
	// contains filtered or unexported fields
}
var Logger *MyLogger = &MyLogger{NewLogger(os.Stdout), nil, logLevel(0), 0}

Jump to

Keyboard shortcuts

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