syslog_logger

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SysLogLogger

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

SysLogLogger ...

func CreateSysLogLogger

func CreateSysLogLogger(appName string, options *SysLogOptions) (*SysLogLogger, error)

func (*SysLogLogger) Error

func (logger *SysLogLogger) Error(now time.Time, msg string)

Error ...

func (*SysLogLogger) Info

func (logger *SysLogLogger) Info(now time.Time, msg string)

Info ...

func (*SysLogLogger) Shutdown

func (logger *SysLogLogger) Shutdown()

func (*SysLogLogger) Warn

func (logger *SysLogLogger) Warn(now time.Time, msg string)

Warn ...

type SysLogOptions

type SysLogOptions struct {
	Host                  string `json:"host,omitempty"`
	Port                  uint16 `json:"port,omitempty"`
	UseTcp                bool   `json:"useTcp,omitempty"`
	UseTls                bool   `json:"useTls,omitempty"`
	UseRFC3164            bool   `json:"useRFC3164,omitempty"`
	SendInfoNotifications bool   `json:"sendInfoNotifications,omitempty"`
}

SysLogOptions ...

Jump to

Keyboard shortcuts

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