1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-24 22:26:54 +02:00

logger: add caller info to default implementation (#1575)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Vasiliy Tolstov
2020-04-26 17:11:53 +03:00
committed by GitHub
parent 7253635cd3
commit a22da39e1c
3 changed files with 24 additions and 4 deletions

View File

@ -14,4 +14,5 @@ func TestLogger(t *testing.T) {
h2.Trace("trace_msg2")
h2.Warn("warn_msg2")
l.Fields(map[string]interface{}{"key3": "val4"}).Log(InfoLevel, "test_msg")
}