announcer

package
v0.0.0-...-bbbf66a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

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

Error is inspired by log.Errorf()

func Fatal

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

Fatal is inspired by log.Fatalf()

func Info

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

Info is inspired by log.Infof()

func P

func P()

P triggers log to print line

func Warning

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

Warning is inspired by log.Warningf()

Types

type Announcer

type Announcer struct {
	// contains filtered or unexported fields
}

Announcer handler all log/event/status messages going outside of controller/worker

func A

func A() Announcer

A adds full code address as 'file:line:function'

func E

func E() Announcer

E adds 'end of the function' tag, which includes: file, line, function and start prefix

func F

func F() Announcer

F adds function name

func FL

func FL() Announcer

FL adds filename

func L

func L() Announcer

L adds line number

func M

func M(m ...interface{}) Announcer

M adds object meta as 'namespace/name'

func New

func New() Announcer

New creates new announcer

func S

func S() Announcer

S adds 'start of the function' tag, which includes: file, line, function and start prefix

func Silence

func Silence() Announcer

Silence produces silent announcer

func V

func V(level log.Level) Announcer

V is inspired by log.V()

func (Announcer) A

func (a Announcer) A() Announcer

A adds full code address as 'file:line:function'

func (Announcer) E

func (a Announcer) E() Announcer

E adds 'end of the function' tag, which includes: file, line, function and start prefix

func (Announcer) Error

func (a Announcer) Error(format string, args ...interface{})

Error is inspired by log.Errorf()

func (Announcer) F

func (a Announcer) F() Announcer

F adds function name

func (Announcer) FL

func (a Announcer) FL() Announcer

FL adds filename

func (Announcer) Fatal

func (a Announcer) Fatal(format string, args ...interface{})

Fatal is inspired by log.Fatalf()

func (Announcer) Info

func (a Announcer) Info(format string, args ...interface{})

Info is inspired by log.Infof()

func (Announcer) L

func (a Announcer) L() Announcer

L adds line number

func (Announcer) M

func (a Announcer) M(m ...interface{}) Announcer

M adds object meta as 'namespace/name'

func (Announcer) P

func (a Announcer) P()

P triggers log to print line

func (Announcer) S

func (a Announcer) S() Announcer

S adds 'start of the function' tag, which includes: file, line, function and start prefix

func (Announcer) Silence

func (a Announcer) Silence() Announcer

Silence produces silent announcer

func (Announcer) V

func (a Announcer) V(level log.Level) Announcer

V is inspired by log.V()

func (Announcer) Warning

func (a Announcer) Warning(format string, args ...interface{})

Warning is inspired by log.Warningf()

Jump to

Keyboard shortcuts

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