log

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package log is the package wrapping logrus

Index

Constants

This section is empty.

Variables

View Source
var (
	// Logger is the logger used in cloudbuild. You can replace or configure it as you like.
	Logger *logrus.Logger
)

Functions

func Debug

func Debug(args ...interface{})

Debug outputs debug logs.

func Debugf

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

Debugf outputs debug logs.

func Error

func Error(args ...interface{})

Error outputs debug logs.

func Errorf

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

Errorf outputs error logs.

func Exit

func Exit(code int)

Exit runs exit hook handlers of logrus and exit the program.

func Info

func Info(args ...interface{})

Info output information logs.

func Infof

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

Infof outputs information logs.

func SetLevelByName

func SetLevelByName(level string) error

SetLevelByName configures the log level with specified name.

func Trace

func Trace(args ...interface{})

Trace output trace logs.

func Tracef

func Tracef(format string, args ...interface{})

Tracef outputs trace logs.

func Warning

func Warning(args ...interface{})

Warning outputs warning logs.

func Warningf

func Warningf(format string, args ...interface{})

Warningf outputs warning logs.

func WithError

func WithError(err error) *logrus.Entry

WithError parepares log outputs with the specified error.

func WithField

func WithField(key string, value interface{}) *logrus.Entry

WithField prepares log outputs with the specified field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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