README ¶ go-kratos-log-syslog Installation go get github.com/go-packagist/go-kratos-log-syslog Usage package main import ( "github.com/go-kratos/kratos/v2/log" syslog "github.com/go-packagist/go-kratos-log-syslog" ) func main() { s, err := syslog.New(&syslog.Config{ Network: "udp", Tag: "test", Addr: "192.168.8.92:30732", }) if err != nil { panic(err) } defer s.Close() s.Log(log.LevelDebug, "test", "test") } License The MIT License (MIT). Please see License File for more information. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Config type Logger func New(config *Config) (*Logger, error) func (l *Logger) Close() error func (l *Logger) Log(level log.Level, keyvals ...interface{}) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Network string Addr string Tag string } type Logger ¶ type Logger struct { // contains filtered or unexported fields } func New ¶ func New(config *Config) (*Logger, error) func (*Logger) Close ¶ func (l *Logger) Close() error func (*Logger) Log ¶ func (l *Logger) Log(level log.Level, keyvals ...interface{}) error Source Files ¶ View all Source files syslog.go Directories ¶ Show internal Expand all Path Synopsis _example Click to show internal directories. Click to hide internal directories.