add signoz
This commit is contained in:
parent
53a1c17064
commit
3f21455e3b
|
@ -24,7 +24,7 @@ var (
|
||||||
// Init ...
|
// Init ...
|
||||||
func Init(appName, server string) {
|
func Init(appName, server string) {
|
||||||
cfg := zap.Config{
|
cfg := zap.Config{
|
||||||
Encoding: "console",
|
Encoding: "json",
|
||||||
Level: zap.NewAtomicLevelAt(zapcore.DebugLevel),
|
Level: zap.NewAtomicLevelAt(zapcore.DebugLevel),
|
||||||
OutputPaths: []string{"stdout"},
|
OutputPaths: []string{"stdout"},
|
||||||
InitialFields: map[string]interface{}{"server": server, "capture": appName},
|
InitialFields: map[string]interface{}{"server": server, "capture": appName},
|
||||||
|
|
Loading…
Reference in New Issue