log

package
v0.0.0-...-1f1360f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message interface{}, args ...interface{})

Debug using debugging level for verbose the messages for stacktrace use error package github.com/pkg/errors in your imports. Use rtb/log in your imports. Initialize logger before first using.

func Error

func Error(message interface{}, args ...interface{})

Error using Error level for logging error messages. Use rtb/log in your imports. Initialize logger before first using.

func Fatal

func Fatal(err error)

Fatal using Error level for logging fatal error messages and exit from app. Use rtb/log in your imports. Initialize logger before first using.

func Info

func Info(message interface{}, args ...interface{})

Info using Info level for logging messages Use rtb/log in your imports. Initialize logger before first using.

func Init

func Init(logWriter io.Writer, logLevel, appName, env string) error

Init initialize logger with generic writer. Use rtb/log in your imports.

func InitWithFile

func InitWithFile(logfile, logLevel, appName, env string) error

InitWithFile initialize logger with file writer. Use rtb/log in your imports.

func InitWithStdout

func InitWithStdout(logLevel, appName, env string) error

InitWithStdout initialize logger with stdout writer and make beauty output. Use rtb/log in your imports.

func Print

func Print(message interface{}, args ...interface{})

Print using Info level for logging messages Use rtb/log in your imports. Initialize logger before first using.

func Println

func Println(message interface{}, args ...interface{})

Println using Info level for logging messages Use rtb/log in your imports. Initialize logger before first using.

Types

This section is empty.

Jump to

Keyboard shortcuts

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