grim/peacock
Clone
Summary
Browse
Changes
Graph
Get the server running with the basic static stuff
draft
2018-05-26, Gary Kramlich
13d711f5f347
Get the server running with the basic static stuff
package
logging
import
(
"github.com/aphistic/gomol"
"github.com/aphistic/gomol-console"
)
func
Start
()
error
{
cfg
:=
gomolconsole
.
NewConsoleLoggerConfig
()
logger
,
err
:=
gomolconsole
.
NewConsoleLogger
(
cfg
)
if
err
!=
nil
{
return
err
}
gomol
.
AddLogger
(
logger
)
return
gomol
.
InitLoggers
()
}
func
Stop
()
error
{
return
gomol
.
ShutdownLoggers
()
}