Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
0f6a2e27
Commit
0f6a2e27
authored
Nov 16, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(eventlog) use the polite json formatter
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
2d6b10f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
util/eventlog/option.go
util/eventlog/option.go
+2
-2
No files found.
util/eventlog/option.go
View file @
0f6a2e27
...
...
@@ -3,8 +3,8 @@ package eventlog
import
(
"io"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/gopkg.in/natefinch/lumberjack.v2"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/maybebtc/logrus"
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/gopkg.in/natefinch/lumberjack.v2"
)
type
Option
func
()
...
...
@@ -17,7 +17,7 @@ func Configure(options ...Option) {
// LdJSONFormatter formats the event log as line-delimited JSON
var
LdJSONFormatter
=
func
()
{
logrus
.
SetFormatter
(
&
logrus
.
JSONFormatter
{})
logrus
.
SetFormatter
(
&
logrus
.
Polite
JSONFormatter
{})
}
var
TextFormatter
=
func
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment