log

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package log provides a global logger with zerolog.

Index

Constants

This section is empty.

Variables

Logger is the global logger.

Functions

func Debug

func Debug(entry string)

Debug

func Debugf

func Debugf(format string, v ...interface{})

Debugf

func Error

func Error(entry string)

Error

func Errorf

func Errorf(format string, v ...interface{})

Errorf

func Fatal

func Fatal(entry string)

Fatal

func Fatalf

func Fatalf(format string, v ...interface{})

Fatalf

func Info

func Info(entry string)

Info

func Infof

func Infof(format string, v ...interface{})

Infof

func NewStd

func NewStd() *stdlog.Logger

NewStd creates new standart logger with zerolog as output

func Print

func Print(v ...interface{})

Print sends a log event using debug level and no extra field. Arguments are handled in the manner of fmt.Print.

func Printf

func Printf(format string, v ...interface{})

Printf sends a log event using debug level and no extra field. Arguments are handled in the manner of fmt.Printf.

func Warn

func Warn(entry string)

Warn

func Warnf

func Warnf(format string, v ...interface{})

Warnf

func WithCaller

func WithCaller(name string)

WithCaller adds caller name to the logs

Types

This section is empty.

Jump to

Keyboard shortcuts

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