log

package
v0.12.17 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 13 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOutput

func AddOutput(l event.Logger)

AddOutput adds a logger to the current loggers

func Critical

func Critical(v ...interface{})

Critical outputs to logger with CRITICAL level.

func Criticalf

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

Criticalf formatted outputs to logger with CRITICAL level.

func Criticals

func Criticals(msg string, tags ...interface{})

Criticals structured debug message

func Criticalw

func Criticalw(r io.Reader)

Criticalw outputs io.Reader to logger with CRITICAL level.

func Debug

func Debug(v ...interface{})

Debug outputs to logger with DEBUG level.

func Debugf

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

Debugf formats output to logger with DEBUG level.

func Debugs

func Debugs(msg string, tags ...interface{})

Debugs structured debug message

func Debugw

func Debugw(r io.Reader)

Debugw outputs io.Reader to logger with DEBUG level.

func Error

func Error(v ...interface{})

Error outputs to logger with ERROR level.

func Errorf

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

Errorf formatted outputs to logger with ERROR level.

func Errors

func Errors(msg string, tags ...interface{})

Errors structured debug message

func Errorw

func Errorw(r io.Reader)

Errorw outputs io.Reader to logger with ERROR level.

func Fatal

func Fatal(v ...interface{})

Fatal is equivalent to Print() followed by a call to os.Exit(1).

func Fatalf

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

Fatalf is equivalent to Printf() followed by a call to os.Exit(1).

func Fatals

func Fatals(msg string, tags ...interface{})

Fatals structured debug message

func GetOutput

func GetOutput() event.Logger

GetOutput returns the current logger

func Info

func Info(v ...interface{})

Info outputs to logger with INFO level.

func Infof

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

Infof formatted outputs to logger with INFO level.

func Infos

func Infos(msg string, tags ...interface{})

Infos structured debug message

func Infow

func Infow(r io.Reader)

Infow outputs io.Reader to logger with INFO level.

func NilCritical

func NilCritical(_ ...interface{})

NilCritical does nothing.

func NilCriticalf

func NilCriticalf(_ string, _ ...interface{})

NilCriticalf does nothing.

func NilCriticals

func NilCriticals(msg string, tags ...interface{})

NilCriticals structured debug message

func NilCriticalw

func NilCriticalw(_ io.Reader)

NilCriticalw does nothing.

func NilDebug

func NilDebug(_ ...interface{})

NilDebug does nothing.

func NilDebugf

func NilDebugf(_ string, _ ...interface{})

NilDebugf does nothing.

func NilDebugs

func NilDebugs(msg string, tags ...interface{})

NilDebugs structured debug message

func NilDebugw

func NilDebugw(_ io.Reader)

NilDebugw does nothing.

func NilError

func NilError(_ ...interface{})

NilError does nothing.

func NilErrorf

func NilErrorf(_ string, _ ...interface{})

NilErrorf does nothing.

func NilErrors

func NilErrors(msg string, tags ...interface{})

NilErrors structured debug message

func NilErrorw

func NilErrorw(_ io.Reader)

NilErrorw does nothing.

func NilFatal

func NilFatal(_ ...interface{})

NilFatal does nothing.

func NilFatalf

func NilFatalf(_ string, _ ...interface{})

NilFatalf does nothing.

func NilFatals

func NilFatals(msg string, tags ...interface{})

NilFatals structured debug message

func NilFatalw

func NilFatalw(_ io.Reader)

NilFatalw does nothing.

func NilInfo

func NilInfo(_ ...interface{})

NilInfo does nothing.

func NilInfof

func NilInfof(_ string, _ ...interface{})

NilInfof does nothing.

func NilInfos

func NilInfos(msg string, tags ...interface{})

NilInfos structured debug message

func NilInfow

func NilInfow(_ io.Reader)

NilInfow does nothing.

func NilNotice

func NilNotice(_ ...interface{})

NilNotice does nothing.

func NilNoticef

func NilNoticef(_ string, _ ...interface{})

NilNoticef does nothing.

func NilNotices

func NilNotices(msg string, tags ...interface{})

NilNotices structured debug message

func NilNoticew

func NilNoticew(_ io.Reader)

NilNoticew does nothing.

func NilPrint

func NilPrint(_ ...interface{})

NilPrint does nothing.

func NilPrintf

func NilPrintf(_ string, _ ...interface{})

NilPrintf does nothing.

func NilPrintln

func NilPrintln(_ ...interface{})

NilPrintln does nothing.

func NilWarning

func NilWarning(_ ...interface{})

NilWarning does nothing.

func NilWarningf

func NilWarningf(_ string, _ ...interface{})

NilWarningf does nothing.

func NilWarnings

func NilWarnings(msg string, tags ...interface{})

NilWarnings structured debug message

func NilWarningw

func NilWarningw(_ io.Reader)

NilWarningw does nothing.

func Notice

func Notice(v ...interface{})

Notice outputs to logger with NOTICE level.

func Noticef

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

Noticef formatted outputs to logger with NOTICE level.

func Notices

func Notices(msg string, tags ...interface{})

Notices structured debug message

func Noticew

func Noticew(r io.Reader)

Noticew outputs io.Reader to logger with NOTICE level.

func Output

func Output(logger event.Logger, calldepth int, in ...interface{})

Output something out

func Outputs

func Outputs(logger event.Logger, calldepth int, level event.Level, msg string, tags ...interface{})

Outputs generate event in the form Logger, depth, msg, [key, value], [key, value] ...

func Panic

func Panic(v ...interface{})

Panic is equivalent to Print() followed by a call to panic().

func Panicf

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

Panicf is equivalent to Printf() followed by a call to panic().

func Print

func Print(v ...interface{})

Print calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Print.

func Printf

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

Printf calls Output to print to the standard logger. Arguments are handled in the manner of fmt.Printf.

func SetOutput

func SetOutput(l event.Logger)

SetOutput sets the output destination for the standard logger.

func SetVerbose

func SetVerbose(level event.Level)

SetVerbose for the current global logger

func StartupBanner

func StartupBanner()

StartupBanner displays a random banner.

func Tee

func Tee(r io.ReadCloser) (w io.ReadCloser)

Tee outputs contents of io.Reader to standard logger. and returns a new io.Reader

func Warning

func Warning(v ...interface{})

Warning outputs to logger with WARNING level.

func Warningf

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

Warningf formatted outputs to logger with WARNING level.

func Warnings

func Warnings(msg string, tags ...interface{})

Warnings structured debug message

func Warningw

func Warningw(r io.Reader)

Warningw outputs io.Reader to logger with WARNING level.

func Write

func Write(r io.Reader)

Write outputs contents of io.Reader to standard logger.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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