Back to godoc.org

Package tlog

v1.1.0
Latest Go to latest

The highest tagged major version is .

Published: Sep 11, 2020 | License: Apache-2.0 | Module: github.com/didi/sharingan/replayer-agent

Index

Constants

const DLTagUndefined = " _undef"

DLTagUndefined ...

const DebugTag = " fdebug"

DebugTag ...

func Init

func Init()

Init Init

type ILog

type ILog interface {
	Debugf(ctx context.Context, tag string, format string, args ...interface{})
	Infof(ctx context.Context, tag string, format string, args ...interface{})
	Warnf(ctx context.Context, tag string, format string, args ...interface{})
	Errorf(ctx context.Context, tag string, format string, args ...interface{})
	Fatalf(ctx context.Context, tag string, format string, args ...interface{})
}

ILog log interface

var Handler ILog

Handler zapLog

type TLog

type TLog struct {
	// contains filtered or unexported fields
}

TLog ...

func NewTLog

func NewTLog(log *zap.Logger) *TLog

NewTLog ...

func (*TLog) Debugf

func (tl *TLog) Debugf(ctx context.Context, tag string, format string, args ...interface{})

Debugf ...

func (*TLog) Errorf

func (tl *TLog) Errorf(ctx context.Context, tag string, format string, args ...interface{})

Errorf ...

func (*TLog) Fatalf

func (tl *TLog) Fatalf(ctx context.Context, tag string, format string, args ...interface{})

Fatalf ...

func (*TLog) Infof

func (tl *TLog) Infof(ctx context.Context, tag string, format string, args ...interface{})

Infof ...

func (*TLog) Warnf

func (tl *TLog) Warnf(ctx context.Context, tag string, format string, args ...interface{})

Warnf ...

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier