log

package
v0.0.0-...-77dcbbd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package log implements logger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(msg string, others ...interface{})
	Info(msg string, others ...interface{})
	Error(msg string, others ...interface{})
	Debugf(msg string, others ...interface{})
	Infof(msg string, others ...interface{})
	Errorf(msg string, others ...interface{})
	Warning(msg string, others ...interface{})
	Warningf(msg string, others ...interface{})
	With(kv ...interface{}) Logger
}

Logger interface used in the sdk.

var DefaultLogger Logger

DefaultLogger is a default setup logger.

func NewDefaultProductionLogger

func NewDefaultProductionLogger() (Logger, error)

NewDefaultProductionLogger returns zap logger with default production setting.

func NewSilentLogger

func NewSilentLogger() (Logger, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL