Create crond scheduler and dependencies and store to disk
This commit is contained in:
21
logger/logger.go
Normal file
21
logger/logger.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package logger
|
||||
|
||||
import (
|
||||
"local/logb"
|
||||
)
|
||||
|
||||
type Logger struct{}
|
||||
|
||||
func New() Logger {
|
||||
return Logger{}
|
||||
}
|
||||
|
||||
func (l Logger) Info(m string, args ...interface{}) {
|
||||
args = append([]interface{}{m}, args...)
|
||||
logb.Info(args...)
|
||||
}
|
||||
|
||||
func (l Logger) Error(e error, m string, args ...interface{}) {
|
||||
args = append([]interface{}{e, m}, args...)
|
||||
logb.Error(args...)
|
||||
}
|
||||
Reference in New Issue
Block a user