# README
log
The Logger
interface can be used instead to give the user choice over which logger they want use
This lib ships with a default implementation of the Logger
interface
SimpleLogger is a wrapped
standard Logger to fit the Logger
interface
You can use your own implementation or a library like logrus
Installing
go get github.com/disgoorg/log
# Functions
AlternateFont returns a Style which alternates the font.
ApplyStyles wraps a given message in the given Style(s).
Debug logs on the LevelDebug with the default SimpleLogger.
Debugf logs on the LevelDebug with the default SimpleLogger.
Default returns the default SimpleLogger.
Error logs on the LevelError with the default SimpleLogger.
Errorf logs on the LevelError with the default SimpleLogger.
Fatal logs on the LevelFatal with the default SimpleLogger.
Fatalf logs on the LevelFatal with the default SimpleLogger.
Info logs on the LevelInfo with the default SimpleLogger.
Infof logs on the LevelInfo with the default SimpleLogger.
New returns a newInt SimpleLogger implementation.
NewNoop creates a new noop logger.
No description provided by the author
No description provided by the author
Panic logs on the LevelPanic with the default SimpleLogger.
Panicf logs on the LevelPanic with the default SimpleLogger.
SetBackgroundColor returns a Style which sets the background color.
SetDefault sets the default SimpleLogger.
SetFlags sets the Output flags like: Ldate, Ltime, Lmicroseconds, Llongfile, Lshortfile, LUTC, Lmsgprefix,LstdFlags of the default Logger.
SetForegroundColor returns a Style which sets the foreground color.
SetLevel sets the Level of the default Logger.
SetLevelColor sets the Style of the given Level.
SetUnderlineColor returns a Style which sets the underline color.
Trace logs on the LevelTrace with the default SimpleLogger.
Tracef logs on the LevelTrace with the default SimpleLogger.
Warn logs on the LevelWarn with the default SimpleLogger.
Warnf logs on the Level with the default SimpleLogger.
# Constants
the date in the local time zone: 2009/01/23.
All Level(s) which SimpleLogger supports.
All Level(s) which SimpleLogger supports.
All Level(s) which SimpleLogger supports.
All Level(s) which SimpleLogger supports.
All Level(s) which SimpleLogger supports.
All Level(s) which SimpleLogger supports.
All Level(s) which SimpleLogger supports.
full file name and line number: /a/b/c/d.go:23.
microsecond resolution: 01:23:23.123123.
move the "prefix" from the beginning of the line to before the message.
final file name element and line number: d.go:23.
initial values for the standard logger.
the time in the local time zone: 01:23:23.
if Ldate or Ltime is set, use UTC rather than the local time zone.
# Variables
background color Style(s)any.
background color Style(s)any.
background bright color Style(s)any.
background bright color Style(s)any.
background bright color Style(s)any.
background bright color Style(s)any.
background bright color Style(s)any.
background bright color Style(s)any.
background bright color Style(s)any.
background bright color Style(s)any.
background color Style(s)any.
background color Style(s)any.
background color Style(s)any.
background color Style(s)any.
background color Style(s)any.
background color Style(s)any.
more general Style(s)any.
background color Style(s)any.
No description provided by the author
foreground color Style(s)any.
foreground color Style(s)any.
foreground bright color Style(s)any.
foreground bright color Style(s)any.
foreground bright color Style(s)any.
foreground bright color Style(s)any.
foreground bright color Style(s)any.
foreground bright color Style(s)any.
foreground bright color Style(s)any.
foreground bright color Style(s)any.
foreground color Style(s)any.
foreground color Style(s)any.
foreground color Style(s)any.
foreground color Style(s)any.
foreground color Style(s)any.
foreground color Style(s)any.
No description provided by the author
No description provided by the author
more general Style(s)any.
general Style(s)any.
general Style(s)any.
more general Style(s)any.
more general Style(s)any.
more general Style(s)any.
more general Style(s)any.
general Style(s)any.
more general Style(s)any.
general Style(s)any.
more general Style(s)any.
more general Style(s)any.
more general Style(s)any.
more general Style(s)any.
more general Style(s)any.
general Style(s)any.
general Style(s)any.
more general Style(s)any.
more general Style(s)any.
super/subscript Style(s)any.
more general Style(s)any.
more general Style(s)any.
more general Style(s)any.
more general Style(s)any.
more general Style(s)any.
more general Style(s)any.
more general Style(s)any.
more general Style(s)any.
more general Style(s)any.
general Style(s)any.
general Style(s)any.
more general Style(s)any.
No description provided by the author
general Style(s)any.
general Style(s)any.
super/subscript Style(s)any.
super/subscript Style(s)any.
general Style(s)any.
No description provided by the author
# Structs
SimpleLogger is a wrapper for the std Logger.
# Interfaces
Logger is the logging interface you can implement/use.