logger

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultLogger Logger

	LogKindOut = "out"
	LogKindErr = "err"
)

Functions

func CreateDefaultLogger

func CreateDefaultLogger()

Types

type Line

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

func Error

func Error(err error) *Line

func Log

func Log(message string) *Line

func Request

func Request() *Line

func Warn

func Warn(message string) *Line

func (*Line) AddKeyValue

func (l *Line) AddKeyValue(key string, value any) *Line

func (*Line) Json

func (l *Line) Json() string

func (*Line) Print

func (l *Line) Print()

func (*Line) PrintInExternalFiles

func (l *Line) PrintInExternalFiles()

func (*Line) String

func (l *Line) String() string

func (*Line) StringPlain

func (l *Line) StringPlain() string

type Logger

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

func (*Logger) CloseLogFiles

func (l *Logger) CloseLogFiles()

func (*Logger) Date

func (l *Logger) Date() string

func (*Logger) Error

func (l *Logger) Error(err error) *Line

func (*Logger) Log

func (l *Logger) Log(message string) *Line

func (*Logger) NewLine

func (l *Logger) NewLine(tag string, kind string, color color.Attribute, message string) *Line

func (*Logger) OpenLogFiles

func (l *Logger) OpenLogFiles()

func (*Logger) Request

func (l *Logger) Request() *Line

func (*Logger) StartCron

func (l *Logger) StartCron()

func (*Logger) Warn

func (l *Logger) Warn(message string) *Line

Jump to

Keyboard shortcuts

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