Documentation ¶
Overview ¶
Package log contains a wrapper of the 'log' package with command utility functions, includig colourised output.
Index ¶
- func Colorize(colour Colour, format string) string
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func Log(l Level, format string, v ...interface{})
- func SetLevel(l Level)
- func Trace(format string, v ...interface{})
- func Warn(format string, v ...interface{})
- type Colour
- type Level
- type MuxyLogger
- func (m *MuxyLogger) Debug(format string, v ...interface{})
- func (m *MuxyLogger) Error(format string, v ...interface{})
- func (m *MuxyLogger) Fatal(v ...interface{})
- func (m *MuxyLogger) Fatalf(format string, v ...interface{})
- func (m *MuxyLogger) Info(format string, v ...interface{})
- func (m *MuxyLogger) Log(l Level, format string, v ...interface{})
- func (m *MuxyLogger) SetLevel(l Level)
- func (m *MuxyLogger) Trace(format string, v ...interface{})
- func (m *MuxyLogger) Warn(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MuxyLogger ¶
MuxyLogger is the logging facility for Muxy
func (*MuxyLogger) Debug ¶
func (m *MuxyLogger) Debug(format string, v ...interface{})
Debug logging
func (*MuxyLogger) Error ¶
func (m *MuxyLogger) Error(format string, v ...interface{})
Error logging
func (*MuxyLogger) Fatalf ¶
func (m *MuxyLogger) Fatalf(format string, v ...interface{})
Fatalf formatted fatal logging
func (*MuxyLogger) Log ¶
func (m *MuxyLogger) Log(l Level, format string, v ...interface{})
Log is general log facility
func (*MuxyLogger) Trace ¶
func (m *MuxyLogger) Trace(format string, v ...interface{})
Trace Logging
Click to show internal directories.
Click to hide internal directories.