wip: log
This commit is contained in:
@@ -2,19 +2,24 @@ package daemon
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"gitea.suyono.dev/suyono/wingmate/config"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
type service struct {
|
||||
name string
|
||||
logChannel chan<- any
|
||||
errChannel chan<- error
|
||||
name string
|
||||
stdoutLogWriter io.WriteCloser
|
||||
stderrLogWriter io.WriteCloser
|
||||
logChannel chan<- any
|
||||
errChannel chan<- error
|
||||
}
|
||||
|
||||
func newService(name string, error chan<- error, logging chan<- any) *service {
|
||||
return &service{
|
||||
name: name,
|
||||
name: name,
|
||||
// stdoutLogWriter: log.NewLogFile(fmt.Sprintf("%s.%s.%s", Service.String(), name, config.CommandKey)),
|
||||
logChannel: logging,
|
||||
errChannel: error,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user