Create crond scheduler and dependencies and store to disk

This commit is contained in:
bel
2020-03-12 15:14:25 -06:00
parent f022b26987
commit 65655080dd
12 changed files with 514 additions and 0 deletions

21
logger/logger.go Normal file
View 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...)
}