switched to use own function for logging

This commit is contained in:
2024-11-23 20:13:07 +09:00
parent 37c600d0f6
commit 493309a4e9
4 changed files with 48 additions and 13 deletions

View File

@ -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{})
}