tlog

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DLTagUndefined = " _undef"

DLTagUndefined ...

View Source
const DebugTag = " fdebug"

DebugTag ...

Variables

This section is empty.

Functions

func Init

func Init()

Init Init

Types

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 ...

Jump to

Keyboard shortcuts

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