Beispiel #1
0
// Error prints out a Info level message
func (c customLogger) Error(message string) {
	initLogger()
	log.Printf("%s %s", terminal.Colorize("[ERROR]", terminal.MAGENTA), message)
}
Beispiel #2
0
// Warn prints out a Info level message
func (c customLogger) Warn(message string) {
	initLogger()
	log.Printf("%s %s", terminal.Colorize("[WARN]", terminal.YELLOW), message)
}
Beispiel #3
0
// Info prints out a Info level message
func (c customLogger) Info(message string) {
	initLogger()

	log.Printf("%s %s", terminal.Colorize("[INFO]", terminal.BLUE), message)
}
Beispiel #4
0
// Debug prints out a Debug level message
func (c customLogger) Debug(message string) {
	initLogger()
	log.Printf("%s %s", terminal.Colorize("[DEBUG]", terminal.GREEN), message)
}
Beispiel #5
0
// Trace prints out more Debug level messages if Verbose activated
func (c customLogger) Trace(message string) {

	initLogger()
	log.Printf("%s %s", terminal.Colorize("[TRACE]", terminal.CYAN), message)
}
Beispiel #6
0
// Fatal exits after printing out critical error
func (c customLogger) Fatal(message string) {
	initLogger()
	log.Printf("%s %s", terminal.Colorize("[FATAL]", terminal.RED), message)
}