type go.uber.org/zap.Logger
79 uses
go.uber.org/zap (current package)
config.go#L239: func (cfg Config) Build(opts ...Option) (*Logger, error) {
global.go#L48: func L() *Logger {
global.go#L66: func ReplaceGlobals(logger *Logger) func() {
global.go#L78: func NewStdLog(l *Logger) *log.Logger {
global.go#L86: func NewStdLogAt(l *Logger, level zapcore.Level) (*log.Logger, error) {
global.go#L102: func RedirectStdLog(l *Logger) func() {
global.go#L119: func RedirectStdLogAt(l *Logger, level zapcore.Level) (func(), error) {
global.go#L123: func redirectStdLogAt(l *Logger, level zapcore.Level) (func(), error) {
global.go#L141: func levelToFunc(logger *Logger, lvl zapcore.Level) (func(string, ...Field), error) {
logger.go#L41: type Logger struct {
logger.go#L68: func New(core zapcore.Core, options ...Option) *Logger {
logger.go#L72: log := &Logger{
logger.go#L86: func NewNop() *Logger {
logger.go#L87: return &Logger{
logger.go#L99: func NewProduction(options ...Option) (*Logger, error) {
logger.go#L107: func NewDevelopment(options ...Option) (*Logger, error) {
logger.go#L116: func Must(logger *Logger, err error) *Logger {
logger.go#L128: func NewExample(options ...Option) *Logger {
logger.go#L145: func (log *Logger) Sugar() *SugaredLogger {
logger.go#L153: func (log *Logger) Named(s string) *Logger {
logger.go#L168: func (log *Logger) WithOptions(opts ...Option) *Logger {
logger.go#L179: func (log *Logger) With(fields ...Field) *Logger {
logger.go#L201: func (log *Logger) WithLazy(fields ...Field) *Logger {
logger.go#L213: func (log *Logger) Level() zapcore.Level {
logger.go#L220: func (log *Logger) Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry {
logger.go#L228: func (log *Logger) Log(lvl zapcore.Level, msg string, fields ...Field) {
logger.go#L236: func (log *Logger) Debug(msg string, fields ...Field) {
logger.go#L244: func (log *Logger) Info(msg string, fields ...Field) {
logger.go#L252: func (log *Logger) Warn(msg string, fields ...Field) {
logger.go#L260: func (log *Logger) Error(msg string, fields ...Field) {
logger.go#L272: func (log *Logger) DPanic(msg string, fields ...Field) {
logger.go#L282: func (log *Logger) Panic(msg string, fields ...Field) {
logger.go#L293: func (log *Logger) Fatal(msg string, fields ...Field) {
logger.go#L301: func (log *Logger) Sync() error {
logger.go#L306: func (log *Logger) Core() zapcore.Core {
logger.go#L312: func (log *Logger) Name() string {
logger.go#L316: func (log *Logger) clone() *Logger {
logger.go#L321: func (log *Logger) check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry {
options.go#L31: apply(*Logger)
options.go#L35: type optionFunc func(*Logger)
options.go#L37: func (f optionFunc) apply(log *Logger) {
options.go#L43: return optionFunc(func(log *Logger) {
options.go#L56: return optionFunc(func(log *Logger) {
options.go#L63: return optionFunc(func(log *Logger) {
options.go#L76: return optionFunc(func(log *Logger) {
options.go#L84: return optionFunc(func(log *Logger) {
options.go#L99: return optionFunc(func(log *Logger) {
options.go#L109: return optionFunc(func(log *Logger) {
options.go#L117: return optionFunc(func(log *Logger) {
options.go#L125: return optionFunc(func(log *Logger) {
options.go#L156: return optionFunc(func(log *Logger) {
options.go#L164: return optionFunc(func(log *Logger) {
sugar.go#L56: base *Logger
sugar.go#L63: func (s *SugaredLogger) Desugar() *Logger {
github.com/gotd/td/internal/exchange
client.go#L15: log *zap.Logger
flow.go#L26: log *zap.Logger
flow.go#L44: func (e Exchanger) WithLogger(log *zap.Logger) Exchanger {
server.go#L15: log *zap.Logger
github.com/gotd/td/internal/mtproto
conn.go#L66: log *zap.Logger
options.go#L33: Logger *zap.Logger
zap.go#L26: func (c *Conn) logWithBuffer(b *bin.Buffer) *zap.Logger {
zap.go#L30: func (c *Conn) logWithType(b *bin.Buffer) *zap.Logger {
zap.go#L40: func (c *Conn) logWithTypeID(id uint32) *zap.Logger {
github.com/gotd/td/internal/pool
options.go#L8: Logger *zap.Logger
pool.go#L24: log *zap.Logger // immutable
github.com/gotd/td/internal/rpc
engine.go#L26: log *zap.Logger
options.go#L15: Logger *zap.Logger
github.com/gotd/td/internal/tdsync
log_group.go#L17: log *zap.Logger
log_group.go#L22: func NewLogGroup(parent context.Context, log *zap.Logger) *LogGroup {
github.com/gotd/td/telegram
builder.go#L103: func retry(ctx context.Context, logger *zap.Logger, cb func(ctx context.Context) error) error {
client.go#L107: log *zap.Logger // immutable
options.go#L57: Logger *zap.Logger
github.com/gotd/td/telegram/internal/manager
conn.go#L59: log *zap.Logger // immutable
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |