logger improvements

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-11-10 22:18:16 +03:00
parent 81649d51e1
commit 6dc7e792c8
3 changed files with 120 additions and 37 deletions

View File

@@ -12,4 +12,5 @@ func TestLogger(t *testing.T) {
l.Trace("trace_msg1")
l.Warn("warn_msg1")
l.Fields(map[string]interface{}{"error": "test"}).Info("error message")
l.Warn("first", " ", "second")
}