radicalLogger

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func EndLine

func EndLine() string

EndLine returns the a newline escape character

func GetradicalLogger

func GetradicalLogger(w io.Writer) *radicalLogger

GetradicalLogger initializes the logger instance with a NewColorWriter output and returns a singleton

func Now

func Now(layout string) string

Now returns the current local time in the specified layout

Types

type LogRecord

type LogRecord struct {
	ID       string
	Level    string
	Message  string
	Filename string
	LineNo   int
}

LogRecord represents a log record and contains the timestamp when the record was created, an increasing id, level and the actual formatted log line.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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