logger

package
v0.0.0-...-5a29284 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes GCE Client

func Error

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

Error prints logs as this format: [ERROR]

func Errorf

func Errorf(format string, v error)

Errorf prints logs as this format: [ERROR]

func Info

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

Info prints logs as this format: [INFO]

func IsLoggerGCE

func IsLoggerGCE() bool

IsLoggerGCE provides interface if current logger is GCE

func Listen

func Listen(listener func(msg string))

Listen listen to ERROR and PANIC

func Panic

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

Panic prints logs as this format: [PANIC]

func Warn

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

Warn prints logs as this format: [WARN]

Types

type Listener

type Listener func(msg string)

Listener Listen to log when ERROR or PANIC

Jump to

Keyboard shortcuts

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