loggers

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slack

type Slack struct {
	WebhookUrl string
	MinLevel   log_level.Level
}

func (Slack) Alert

func (s Slack) Alert(message string, arguments ...interface{})

A condition that should be corrected immediately, such as a corrupted system contextbase.

func (Slack) AlertWith

func (s Slack) AlertWith(message string, context interface{})

A condition that should be corrected immediately, such as a corrupted system contextbase. w

func (Slack) Clear

func (s Slack) Clear()

func (Slack) Critical

func (s Slack) Critical(message string, arguments ...interface{})

Critical conditions

func (Slack) CriticalWith

func (s Slack) CriticalWith(message string, context interface{})

Critical conditions

func (Slack) Debug

func (s Slack) Debug(message string, arguments ...interface{})

Debug-level messages Messages containing information that is normally only useful when debugging a program.

func (Slack) DebugWith

func (s Slack) DebugWith(message string, context interface{})

Debug-level messages Messages containing information that is normally only useful when debugging a program.

func (Slack) Emergency

func (s Slack) Emergency(message string, arguments ...interface{})

Log that the system is unusable

func (Slack) EmergencyWith

func (s Slack) EmergencyWith(message string, context interface{})

Log that the system is unusable

func (Slack) Error

func (s Slack) Error(message string, arguments ...interface{})

Error conditions

func (Slack) ErrorWith

func (s Slack) ErrorWith(message string, context interface{})

Error conditions

func (Slack) Group

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

func (Slack) Info

func (s Slack) Info(message string, arguments ...interface{})

Informational messages

func (Slack) InfoWith

func (s Slack) InfoWith(message string, context interface{})

Informational messages

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) Notice

func (s Slack) Notice(message string, arguments ...interface{})

Normal but significant conditions Conditions that are not error conditions, but that may require special handling.

func (Slack) NoticeWith

func (s Slack) NoticeWith(message string, context interface{})

Normal but significant conditions Conditions that are not error conditions, but that may require special handling.

func (Slack) SetApp

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

func (Slack) Warning

func (s Slack) Warning(message string, arguments ...interface{})

Warning conditions

func (Slack) WarningWith

func (s Slack) WarningWith(message string, context interface{})

Warning conditions

type SlackRequestBody

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

type Stack

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

func (Stack) Alert

func (s Stack) Alert(message string, arguments ...interface{})

func (Stack) AlertWith

func (s Stack) AlertWith(message string, context interface{})

func (Stack) Clear

func (s Stack) Clear()

func (Stack) Critical

func (s Stack) Critical(message string, arguments ...interface{})

func (Stack) CriticalWith

func (s Stack) CriticalWith(message string, context interface{})

func (Stack) Debug

func (s Stack) Debug(message string, arguments ...interface{})

func (Stack) DebugWith

func (s Stack) DebugWith(message string, context interface{})

func (Stack) Emergency

func (s Stack) Emergency(message string, arguments ...interface{})

func (Stack) EmergencyWith

func (s Stack) EmergencyWith(message string, context interface{})

func (Stack) Error

func (s Stack) Error(message string, arguments ...interface{})

func (Stack) ErrorWith

func (s Stack) ErrorWith(message string, context interface{})

func (Stack) Group

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

func (Stack) Info

func (s Stack) Info(message string, arguments ...interface{})

func (Stack) InfoWith

func (s Stack) InfoWith(message string, context interface{})

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) Notice

func (s Stack) Notice(message string, arguments ...interface{})

func (Stack) NoticeWith

func (s Stack) NoticeWith(message string, context interface{})

func (Stack) SetApp

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

func (Stack) Warning

func (s Stack) Warning(message string, arguments ...interface{})

func (Stack) WarningWith

func (s Stack) WarningWith(message string, context interface{})

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) Alert

func (r Syslog) Alert(message string, arguments ...interface{})

A condition that should be corrected immediately, such as a corrupted system contextbase.

func (Syslog) AlertWith

func (r Syslog) AlertWith(message string, context interface{})

A condition that should be corrected immediately, such as a corrupted system contextbase. w

func (Syslog) Clear

func (r Syslog) Clear()

func (Syslog) Critical

func (r Syslog) Critical(message string, arguments ...interface{})

Critical conditions

func (Syslog) CriticalWith

func (r Syslog) CriticalWith(message string, context interface{})

Critical conditions

func (Syslog) Debug

func (r Syslog) Debug(message string, arguments ...interface{})

Debug-level messages Messages containing information that is normally only useful when debugging a program.

func (Syslog) DebugWith

func (r Syslog) DebugWith(message string, context interface{})

Debug-level messages Messages containing information that is normally only useful when debugging a program.

func (Syslog) Emergency

func (r Syslog) Emergency(message string, arguments ...interface{})

Log that the system is unusable

func (Syslog) EmergencyWith

func (r Syslog) EmergencyWith(message string, context interface{})

Log that the system is unusable

func (Syslog) Error

func (r Syslog) Error(message string, arguments ...interface{})

Error conditions

func (Syslog) ErrorWith

func (r Syslog) ErrorWith(message string, context interface{})

Error conditions

func (Syslog) Group

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

func (Syslog) Info

func (r Syslog) Info(message string, arguments ...interface{})

Informational messages

func (Syslog) InfoWith

func (r Syslog) InfoWith(message string, context interface{})

Informational messages

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) Notice

func (r Syslog) Notice(message string, arguments ...interface{})

Normal but significant conditions Conditions that are not error conditions, but that may require special handling.

func (Syslog) NoticeWith

func (r Syslog) NoticeWith(message string, context interface{})

Normal but significant conditions Conditions that are not error conditions, but that may require special handling.

func (Syslog) SetApp

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

func (Syslog) Warning

func (r Syslog) Warning(message string, arguments ...interface{})

Warning conditions

func (Syslog) WarningWith

func (r Syslog) WarningWith(message string, context interface{})

Warning conditions

Jump to

Keyboard shortcuts

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