Documentation ¶
Index ¶
- type Formatter
- type Syslog
- func (s *Syslog) DisplayColor(color bool)
- func (s *Syslog) Run() chan<- *log.Entry
- func (s *Syslog) SetANSIReset(code log.ANSIEscSeq)
- func (s *Syslog) SetChannelBuffer(i uint)
- func (s *Syslog) SetFormatter(f Formatter)
- func (s *Syslog) SetLevelColor(l log.Level, color log.ANSIEscSeq)
- func (s *Syslog) SetTimestampFormat(format string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Syslog ¶
type Syslog struct {
// contains filtered or unexported fields
}
Syslog is an instance of the syslog logger
func New ¶
New returns a new instance of the syslog logger example: syslog.New("udp", "localhost:514", syslog.LOG_DEBUG, "")
func (*Syslog) DisplayColor ¶
DisplayColor tells Console to output in color or not Default is : true
func (*Syslog) SetANSIReset ¶
func (s *Syslog) SetANSIReset(code log.ANSIEscSeq)
SetANSIReset sets the ANSI Reset sequence
func (*Syslog) SetChannelBuffer ¶
SetChannelBuffer tells Syslog what the channel buffer size should be Default is : 0
func (*Syslog) SetFormatter ¶
SetFormatter sets the Syslog entry formatter Default is : defaultFormatEntry
func (*Syslog) SetLevelColor ¶
func (s *Syslog) SetLevelColor(l log.Level, color log.ANSIEscSeq)
SetLevelColor updates Console's level color values
func (*Syslog) SetTimestampFormat ¶
SetTimestampFormat sets Console's timestamp output format Default is : time.RFC3339Nano
Click to show internal directories.
Click to hide internal directories.