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