Logger interface

Methods:

Debug


Parameters:
  • msg string
  • kv ...any

Info


Parameters:
  • msg string
  • kv ...any

Warn


Parameters:
  • msg string
  • kv ...any

Error


Parameters:
  • msg string
  • kv ...any

Fatal


Parameters:
  • msg string
  • kv ...any

nop struct

Methods:

Debug


Parameters:
  • string
  • ...any

Show/Hide Method Body
{}

Info


Parameters:
  • string
  • ...any

Show/Hide Method Body
{}

Warn


Parameters:
  • string
  • ...any

Show/Hide Method Body
{}

Error


Parameters:
  • string
  • ...any

Show/Hide Method Body
{}

Fatal


Parameters:
  • string
  • ...any

Show/Hide Method Body
{}

Zap struct

Fields:

  • L (*zap.Logger)

Implements:

  • Logger from logger

Methods:

Debug


Parameters:
  • msg string
  • kv ...any

Show/Hide Method Body
{ z.L.Sugar().Debugw(msg, kv...) }

Info


Parameters:
  • msg string
  • kv ...any

Show/Hide Method Body
{ z.L.Sugar().Infow(msg, kv...) }

Warn


Parameters:
  • msg string
  • kv ...any

Show/Hide Method Body
{ z.L.Sugar().Warnw(msg, kv...) }

Error


Parameters:
  • msg string
  • kv ...any

Show/Hide Method Body
{ z.L.Sugar().Errorw(msg, kv...) }

Fatal


Parameters:
  • msg string
  • kv ...any

Show/Hide Method Body
{ z.L.Sugar().Fatalw(msg, kv...) }

go.uber.org/zap import

Import example:

import "go.uber.org/zap"