stream

package
v0.0.0-...-724c7a8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: EUPL-1.2 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TimeFormat = "2006-01-02T15:04:05.999-0700"

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger is a logger that write sits messages to a stream.

func NewLogger

func NewLogger(stream *os.File) *Logger

NewLogger returns an instance of a stream Logger.

func (*Logger) Debug

func (l *Logger) Debug(msg string, args ...interface{})

Debug logs a message at LevelDebug level.

func (*Logger) Error

func (l *Logger) Error(msg string, args ...interface{})

Error logs a message at LevelError level.

func (*Logger) Info

func (l *Logger) Info(msg string, args ...interface{})

Info logs a message at LevelInfo level.

func (*Logger) Trace

func (l *Logger) Trace(msg string, args ...interface{})

Trace logs a message at LevelTrace level.

func (*Logger) Warn

func (l *Logger) Warn(msg string, args ...interface{})

Warn logs a message at LevelWarn level.

Jump to

Keyboard shortcuts

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