36 lines
501 B
Go
36 lines
501 B
Go
package flog
|
|
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
|
|
var (
|
|
printContext = map[string]interface{}{
|
|
"~type":"print",
|
|
}
|
|
)
|
|
|
|
|
|
func (flogger *internalFlogger) Print(v ...interface{}) {
|
|
|
|
msg := fmt.Sprint(v...)
|
|
|
|
flogger.route(msg, printContext)
|
|
}
|
|
|
|
func (flogger *internalFlogger) Printf(format string, v ...interface{}) {
|
|
|
|
msg := fmt.Sprintf(format, v...)
|
|
|
|
flogger.route(msg, printContext)
|
|
}
|
|
|
|
func (flogger *internalFlogger) Println(v ...interface{}) {
|
|
|
|
msg := fmt.Sprintln(v...)
|
|
|
|
flogger.route(msg, printContext)
|
|
}
|