You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
350 B
Go
21 lines
350 B
Go
package sim
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/jordanorelli/blammo"
|
|
)
|
|
|
|
func defaultLog() *blammo.Log {
|
|
stdout := blammo.NewLineWriter(os.Stdout)
|
|
stderr := blammo.NewLineWriter(os.Stderr)
|
|
|
|
options := []blammo.Option{
|
|
blammo.DebugWriter(stdout),
|
|
blammo.InfoWriter(stdout),
|
|
blammo.ErrorWriter(stderr),
|
|
}
|
|
|
|
return blammo.NewLog("sim", options...)
|
|
}
|