Versions in this module Expand all Collapse all v2 v2.0.16 Dec 21, 2021 Changes in this version + const DialTimeoutSecs + const MaxRetryBackoffMillis + const RetryBackoffMillis + const WriteTimeoutSecs + func CreateTestLogger(t *testing.T, levels ...logr.Level) (logger logr.Logger, shutdown func() error) + func GetCertPool(cert string) (*x509.CertPool, error) + type File struct + func NewFileTarget(opts FileOptions) *File + func (f *File) Init() error + func (f *File) Shutdown() error + func (f *File) Write(p []byte, rec *logr.LogRec) (int, error) + type FileOptions struct + Compress bool + Filename string + MaxAge int + MaxBackups int + MaxSize int + func (fo FileOptions) CheckValid() error + type Syslog struct + func NewSyslogTarget(params *SyslogOptions) (*Syslog, error) + func (s *Syslog) Init() error + func (s *Syslog) Shutdown() error + func (s *Syslog) Write(p []byte, rec *logr.LogRec) (int, error) + type SyslogOptions struct + Cert string + Host string + IP string + Insecure bool + Port int + TLS bool + Tag string + func (so SyslogOptions) CheckValid() error + type Tcp struct + func NewTcpTarget(options *TcpOptions) *Tcp + func (tcp *Tcp) Init() error + func (tcp *Tcp) Shutdown() error + func (tcp *Tcp) String() string + func (tcp *Tcp) Write(p []byte, rec *logr.LogRec) (int, error) + type TcpOptions struct + Cert string + Host string + IP string + Insecure bool + Port int + TLS bool + func (to TcpOptions) CheckValid() error + type Testing struct + func NewTestingTarget(t *testing.T) *Testing + func (tt *Testing) Init() error + func (tt *Testing) Shutdown() error + func (tt *Testing) Write(p []byte, rec *logr.LogRec) (int, error) + type Writer struct + func NewWriterTarget(out io.Writer) *Writer + func (w *Writer) Init() error + func (w *Writer) Shutdown() error + func (w *Writer) Write(p []byte, rec *logr.LogRec) (int, error)