File tree 3 files changed +3
-2
lines changed 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
GoLogex
2
2
=======
3
3
[ ![ Build Status] ( https://api.travis-ci.org/chzyer/gologex.png?branch=master )] ( https://travis-ci.org/chzyer/gologex )
4
+ [ ![ GoDoc] ( https://godoc.org/github.com/chzyer/gologex?status.svg )] ( https://godoc.org/github.com/chzyer/gologex )
4
5
5
6
6
7
An golang log lib, supports tracking and level, wrap by standard log lib
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
)
12
12
13
13
func NewError (info string , format ... interface {}) * TrackError {
14
- err := errors . New ( fmt .Sprintf (info , format ... ) )
14
+ err := fmt .Errorf (info , format ... )
15
15
return & TrackError {
16
16
error : err ,
17
17
}
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ func TestLogex(t *testing.T) {
42
42
test (buf )
43
43
ret := buf .String ()
44
44
45
- println ("\n --------\n " , ret )
45
+ println ("--------\n " , ret )
46
46
47
47
except := []string {
48
48
".test:logex_test.go:19]aa" ,
You can’t perform that action at this time.
0 commit comments