Add support for json formatted logs (#1245)

This commit is contained in:
Matt Stephenson
2018-09-26 16:04:55 -07:00
committed by Reed Allman
parent 3920e15769
commit 4d30b9de09
4 changed files with 35 additions and 5 deletions

View File

@@ -19,6 +19,7 @@ import (
func testServer(ds models.Datastore, mq models.MessageQueue, logDB models.LogStore, rnr agent.Agent, nodeType NodeType, opts ...Option) *Server {
return New(context.Background(), append(opts,
WithLogFormat("text"),
WithLogLevel("debug"),
WithDatastore(ds),
WithMQ(mq),