Logger
This commit is contained in:
parent
db1829f9ed
commit
ac269889ed
|
@ -2,6 +2,8 @@ package core
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/localhots/confection"
|
||||
)
|
||||
|
@ -20,6 +22,10 @@ type (
|
|||
)
|
||||
|
||||
func (c *Config) Init() {
|
||||
log.SetOutput(os.Stderr)
|
||||
log.SetFlags(log.Ltime)
|
||||
log.SetPrefix("YEAST @ ")
|
||||
|
||||
c.conf = confection.New(*c, c.decoder)
|
||||
go c.conf.StartServer()
|
||||
c.conf.RequireConfig()
|
||||
|
|
Loading…
Reference in New Issue