log

package
v0.0.0-...-6415450 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DPanic

func DPanic(log string, fields ...zapcore.Field)

DPanic logs on dPanic level

func DPanicWithContext

func DPanicWithContext(ctx context.Context, log string, fields ...zapcore.Field)

DPanicWithContext logs on dPanic level and trace based on the context span if it exists

func DPanicWithSpan

func DPanicWithSpan(span opentracing.Span, log string, fields ...zapcore.Field)

DPanicWithSpan logs on dPanic level and add the logs on the trace if span exists.

func Debug

func Debug(log string, fields ...zapcore.Field)

Debug logs on debug level

func DebugWithContext

func DebugWithContext(ctx context.Context, log string, fields ...zapcore.Field)

DebugWithContext logs on debug level and trace based on the context span if it exists

func DebugWithSpan

func DebugWithSpan(span opentracing.Span, log string, fields ...zapcore.Field)

DebugWithSpan logs on debug level and add the logs on the trace if span exists.

func Error

func Error(log string, fields ...zapcore.Field)

Error logs on error level

func ErrorWithContext

func ErrorWithContext(ctx context.Context, log string, fields ...zapcore.Field)

ErrorWithContext logs on error level and trace based on the context span if it exists

func ErrorWithSpan

func ErrorWithSpan(span opentracing.Span, log string, fields ...zapcore.Field)

ErrorWithSpan logs on error level and add the logs on the trace if span exists.

func Fatal

func Fatal(log string, fields ...zapcore.Field)

Fatal logs on fatal level

func FatalWithContext

func FatalWithContext(ctx context.Context, log string, fields ...zapcore.Field)

FatalWithContext logs on fatal level and trace based on the context span if it exists

func FatalWithSpan

func FatalWithSpan(span opentracing.Span, log string, fields ...zapcore.Field)

FatalWithSpan logs on fatal level and add the logs on the trace if span exists.

func Info

func Info(log string, fields ...zapcore.Field)

Info logs on info level

func InfoWithContext

func InfoWithContext(ctx context.Context, log string, fields ...zapcore.Field)

InfoWithContext logs on info level and trace based on the context span if it exists

func InfoWithSpan

func InfoWithSpan(span opentracing.Span, log string, fields ...zapcore.Field)

InfoWithSpan logs on info level and add the logs on the trace if span exists.

func Panic

func Panic(log string, fields ...zapcore.Field)

Panic logs on panic level

func PanicWithContext

func PanicWithContext(ctx context.Context, log string, fields ...zapcore.Field)

PanicWithContext logs on panic level and trace based on the context span if it exists

func PanicWithSpan

func PanicWithSpan(span opentracing.Span, log string, fields ...zapcore.Field)

PanicWithSpan logs on panic level and add the logs on the trace if span exists.

func Warn

func Warn(log string, fields ...zapcore.Field)

Warn logs on warn level

func WarnWithContext

func WarnWithContext(ctx context.Context, log string, fields ...zapcore.Field)

WarnWithContext logs on warn level and trace based on the context span if it exists

func WarnWithSpan

func WarnWithSpan(span opentracing.Span, log string, fields ...zapcore.Field)

WarnWithSpan logs on warn level and add the logs on the trace if span exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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