Documentation ¶
Index ¶
- func MakeTimestamp() float64
- type Endpoint
- type GELF
- func (l *GELF) Log(shortMessage string, message string, severity uint)
- func (l *GELF) LogCritical(shortMessage string, message string)
- func (l *GELF) LogDebug(shortMessage string, message string)
- func (l *GELF) LogError(shortMessage string, message string)
- func (l *GELF) LogFatal(shortMessage string, message string)
- func (l *GELF) LogInformation(shortMessage string, message string)
- func (l *GELF) LogTrace(shortMessage string, message string)
- func (l *GELF) LogWarning(shortMessage string, message string)
- type GELFConfig
- type Graylog
- type Message
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeTimestamp ¶
func MakeTimestamp() float64
Types ¶
type GELF ¶
GELF wrapper for Graylog instance
var Logger *GELF
Logger instance for GELF
func CreateLogger ¶
func CreateLogger(settings GELFConfig) *GELF
CreateLogger - create instance of GELF
func (*GELF) LogCritical ¶
LogCritical to provide .NET ILogger style function
func (*GELF) LogInformation ¶
LogInformation to provide .NET ILogger style function
func (*GELF) LogWarning ¶
LogWarning to provide .NET ILogger style function
type GELFConfig ¶
GELFConfig definitions for Graylog host details
type Graylog ¶
Graylog represents an established graylog connection
func NewGraylog ¶
NewGraylog instanciates a new graylog connection using the given endpoint
func NewGraylogTLS ¶
NewGraylogTLS instanciates a new graylog connection with TLS, using the given endpoint
type Message ¶
type Message struct { Version string `json:"version"` Host string `json:"host"` ShortMessage string `json:"short_message"` FullMessage string `json:"full_message,omitempty"` Timestamp float64 `json:"timestamp,omitempty"` Level uint `json:"level,omitempty"` Extra map[string]string `json:"-"` }
Message represents a GELF formated message
Click to show internal directories.
Click to hide internal directories.