loggers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggerFacade added in v0.3.3

func NewLoggerFacade(logger inter.Logger) *loggerFacade

Types

type Slack

type Slack struct {
	WebhookUrl string
	MinLevel   log_level.Level
}

func (Slack) Clear

func (s Slack) Clear() bool

func (Slack) Group

func (s Slack) Group(_ string) inter.Logger

func (Slack) Log

func (s Slack) Log(severity log_level.Level, message string, arguments ...interface{})

func (Slack) LogWith

func (s Slack) LogWith(severity log_level.Level, message string, data interface{})

func (Slack) SetApp

func (s Slack) SetApp(_ inter.AppReader) inter.Logger

type SlackRequestBody

type SlackRequestBody struct {
	Text string `json:"text"`
}

type Stack

type Stack struct {
	Channels []string
	// contains filtered or unexported fields
}

func (Stack) Clear

func (s Stack) Clear() bool

func (Stack) Group

func (s Stack) Group(group string) inter.Logger

func (Stack) Log

func (s Stack) Log(severity log_level.Level, message string, arguments ...interface{})

func (Stack) LogWith

func (s Stack) LogWith(severity log_level.Level, message string, context interface{})

func (Stack) SetApp

func (s Stack) SetApp(app inter.AppReader) inter.Logger

type Syslog

type Syslog struct {
	Path     string
	Facility syslog.Facility

	Writer     io.Writer
	Permission os.FileMode
	MinLevel   log_level.Level
	MaxFiles   int

	HideStackTrace bool
	// contains filtered or unexported fields
}

func (Syslog) Clear

func (r Syslog) Clear() bool

func (Syslog) Group

func (r Syslog) Group(group string) inter.Logger

func (Syslog) Log

func (r Syslog) Log(severity log_level.Level, message string, arguments ...interface{})

func (Syslog) LogWith

func (r Syslog) LogWith(severity log_level.Level, message string, rawContext interface{})

func (Syslog) SetApp

func (r Syslog) SetApp(app inter.AppReader) inter.Logger

Jump to

Keyboard shortcuts

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