switched to use own function for logging
This commit is contained in:
4
hodu.go
4
hodu.go
@ -14,7 +14,7 @@ const (
|
||||
)
|
||||
|
||||
type Logger interface {
|
||||
Write (id string, level LogLevel, fmt string, args ...interface{})
|
||||
Write (id string, level LogLevel, fmtstr string, args ...interface{})
|
||||
}
|
||||
|
||||
type Service interface {
|
||||
@ -22,5 +22,5 @@ type Service interface {
|
||||
StartService(data interface{}) // non-blocking. spin up a service. it may be invokded multiple times for multiple instances
|
||||
StopServices() // non-blocking. send stop request to all services spun up
|
||||
WaitForTermination() // blocking. must wait until all services are stopped
|
||||
WriteLog(id string, level LogLevel, fmt string, args ...interface{})
|
||||
WriteLog(id string, level LogLevel, fmtstr string, args ...interface{})
|
||||
}
|
||||
|
Reference in New Issue
Block a user