master
parent
5a24bd9053
commit
2103b6ae23
2 changed files with 20 additions and 4 deletions
@ -0,0 +1,14 @@ |
||||
package mq |
||||
|
||||
import ( |
||||
"git.diulo.com/mogfee/protoc-gen-kit/log" |
||||
"testing" |
||||
) |
||||
|
||||
func Test_nsqLogger_Log(t *testing.T) { |
||||
logger := log.With(NewNsqLogger("localhost:4150", "app_log"), |
||||
"ts", log.DefaultTimestamp, |
||||
"caller", log.DefaultCaller, |
||||
) |
||||
logger.Log(log.LevelInfo, "user name ttt") |
||||
} |
Loading…
Reference in new issue