logging

package
v0.0.0-...-0077de9 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int8
const (
	LevelInfo LogLevel = iota
	LevelError
	LevelFatal
)

func (LogLevel) String

func (l LogLevel) String() string

type Logger

type Logger struct {
	Out *os.File
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger() (*Logger, error)

func (*Logger) LogError

func (l *Logger) LogError(err error, source string)

func (*Logger) LogFatal

func (l *Logger) LogFatal(err error, source string)

LogFatal panics the given error

func (*Logger) LogInfo

func (l *Logger) LogInfo(message, source string)

func (*Logger) WriteToStandarOutput

func (l *Logger) WriteToStandarOutput(message string)

Jump to

Keyboard shortcuts

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