Documentation ¶
Overview ¶
Package log implements Tabula's format for logging different types of logs. This extends the already-powerful standard library and provides only the necessary features without using external dependencies. Provides info, debug, and performance loggers.
Index ¶
- func Debug(v ...interface{})
- func Debugf(format string, v ...interface{})
- func Debugln(v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fatalln(v ...interface{})
- func Info(v ...interface{})
- func Infof(format string, v ...interface{})
- func Infoln(v ...interface{})
- func Perf(v ...interface{})
- func Perff(format string, v ...interface{})
- func Perfln(v ...interface{})
- func SetColorized(toggle bool)
- func SetDebugOutput(out io.Writer)
- func SetFatalOutput(out io.Writer)
- func SetInfoOutput(out io.Writer)
- func SetPerfOutput(out io.Writer)
- func SetWarnOutput(out io.Writer)
- func Warn(v ...interface{})
- func Warnf(format string, v ...interface{})
- func Warnln(v ...interface{})
- type ConstErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(v ...interface{})
Print calls l.Output to print to the debug logger. Arguments are handled in the manner of fmt.Print.
func Debugf ¶
func Debugf(format string, v ...interface{})
Printf calls l.Output to print to the debug logger. Arguments are handled in the manner of fmt.Printf.
func Debugln ¶
func Debugln(v ...interface{})
Println calls l.Output to print to the debug logger. Arguments are handled in the manner of fmt.Println.
func Fatal ¶
func Fatal(v ...interface{})
Print calls l.Output to print to the fatal logger. Arguments are handled in the manner of fmt.Print.
func Fatalf ¶
func Fatalf(format string, v ...interface{})
Printf calls l.Output to print to the fatal logger. Arguments are handled in the manner of fmt.Printf.
func Fatalln ¶
func Fatalln(v ...interface{})
Println calls l.Output to print to the fatal logger. Arguments are handled in the manner of fmt.Println.
func Info ¶
func Info(v ...interface{})
Print calls l.Output to print to the info logger. Arguments are handled in the manner of fmt.Print.
func Infof ¶
func Infof(format string, v ...interface{})
Printf calls l.Output to print to the info logger. Arguments are handled in the manner of fmt.Printf.
func Infoln ¶
func Infoln(v ...interface{})
Println calls l.Output to print to the info logger. Arguments are handled in the manner of fmt.Println.
func Perf ¶
func Perf(v ...interface{})
Print calls l.Output to print to the performance logger. Arguments are handled in the manner of fmt.Print.
func Perff ¶
func Perff(format string, v ...interface{})
Printf calls l.Output to print to the performance logger. Arguments are handled in the manner of fmt.Printf.
func Perfln ¶
func Perfln(v ...interface{})
Println calls l.Output to print to the performance logger. Arguments are handled in the manner of fmt.Println.
func SetColorized ¶
func SetColorized(toggle bool)
func SetDebugOutput ¶
SetOutput sets the output destination for the debug logger.
func SetFatalOutput ¶
SetOutput sets the output destination for the fatal logger.
func SetInfoOutput ¶
SetOutput sets the output destination for the info logger.
func SetPerfOutput ¶
SetOutput sets the output destination for the performance logger.
func SetWarnOutput ¶
SetOutput sets the output destination for the warning logger.
func Warn ¶
func Warn(v ...interface{})
Print calls l.Output to print to the warning logger. Arguments are handled in the manner of fmt.Print.