syslog

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func NewLogger

func NewLogger(cfg config.Telegram) (l Logger)

NewLogger creates a new system logger instance

func (Logger) Debugf added in v0.0.13

func (l Logger) Debugf(msg string, v ...interface{})

Debugf logs an debug message to stdout, but doesn't send a Telegram notification

func (Logger) Errorf

func (l Logger) Errorf(msg string, v ...interface{})

Errorf logs an error message to stdout, and also sends a Telegram notification if enabled

func (Logger) Fatalf

func (l Logger) Fatalf(msg string, v ...interface{})

Fatalf works like Errorf, but it returns with a non-zero exit code after logging

func (Logger) Printf

func (l Logger) Printf(msg string, v ...interface{})

Printf logs an informational message to stdout, and also sends a Telegram notification if enabled

Jump to

Keyboard shortcuts

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