Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogFatalError ¶
By default the Fatal Error log will be in json format, because it's production default.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewWithAtomicLevel ¶
func NewWithAtomicLevel(format Format, atomicLevel zap.AtomicLevel, additionalCores ...zapcore.Core) (*Logger, error)
This function creates logger structure based on given format, atomicLevel and additional cores AtomicLevel structure allows to change level dynamically
func (*Logger) WithContext ¶
func (l *Logger) WithContext() *zap.SugaredLogger
func (*Logger) WithTracing ¶
func (l *Logger) WithTracing(ctx context.Context) *zap.SugaredLogger
Click to show internal directories.
Click to hide internal directories.