Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Full ¶
type Full interface { Warning(arg string) Information(arg string) Verbose(arg string) Debug(arg string) Error(arg string) Write(arg string) Warningln(arg string) Informationln(arg string) Verboseln(arg string) Debugln(arg string) Errorln(arg string) Writeln(arg string) }
Full the full logging interface with all functions
func MakeLoggerFull ¶
func MakeLoggerFull(logger interface{}) Full
MakeLoggerFull returns a wrapper class that provides Full semantics, utilizing a simple Simple.write() function
type Simple ¶
type Simple interface {
Write(arg string)
}
Simple is the simplest logging interface you can have
If this is specified, it will get wrapped into the full interface by prepending the category "Warning: ", "Information: "... and appending a \n for the *ln functions (Writeln,...)
type SimpleFmtPrint ¶
type SimpleFmtPrint struct { }
SimpleFmtPrint is a Simple logger that calls fmt.Print
func (SimpleFmtPrint) Write ¶
func (SimpleFmtPrint) Write(arg string)
type SimpleFuncPtr ¶
type SimpleFuncPtr struct {
FuncPtr func(string)
}
SimpleFuncPtr is a Simple logger that allows you to pass in a function pointer for the Write call
func (SimpleFuncPtr) Write ¶
func (holder SimpleFuncPtr) Write(arg string)
Click to show internal directories.
Click to hide internal directories.