logger

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package logger 封装traceId的log打印 Created by chenguolin 2018-11-17

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(tc *trace.Context, msg string, fields ...zap.Field)

Debug 日志

func Error

func Error(tc *trace.Context, msg string, fields ...zap.Field)

Error 日志

func Fatal

func Fatal(tc *trace.Context, msg string, fields ...zap.Field)

Fatal 日志

func Info

func Info(tc *trace.Context, msg string, fields ...zap.Field)

Info 日志

func NewLog

func NewLog(dir, name, timePattern string) (*log.Logger, error)

NewLog new log logger

func Panic

func Panic(tc *trace.Context, msg string, fields ...zap.Field)

Panic 日志

func Warn

func Warn(tc *trace.Context, msg string, fields ...zap.Field)

Warn 日志

Types

This section is empty.

Jump to

Keyboard shortcuts

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