Skip to main content

log

log

import "github.com/gojek/courier-go/xds/log"

Package log provides logger interface for usage inside xds client

Index

## type [Logger](https://github.com/gojek/courier-go/blob/main/xds/log/logger.go#L4-L11)

Logger is used to log messages of info, error and debug levels

type Logger interface {
// Info is used to log info level log messages
Info(msg string, keysAndValues ...interface{})
// Error is used to log error level log messages
Error(err error, msg string, keysAndValues ...interface{})
// Debug is used to log debug level log messages
Debug(msg string, keysAndValues ...interface{})
}
## type [NoOpLogger](https://github.com/gojek/courier-go/blob/main/xds/log/logger.go#L14)

NoOpLogger is a noop implementation of Logger

type NoOpLogger struct{}
### func \(\*NoOpLogger\) [Debug](https://github.com/gojek/courier-go/blob/main/xds/log/logger.go#L23)
func (l *NoOpLogger) Debug(_ string, _ ...interface{})

Debug logs debug level log messages

### func \(\*NoOpLogger\) [Error](https://github.com/gojek/courier-go/blob/main/xds/log/logger.go#L20)
func (l *NoOpLogger) Error(_ error, _ string, _ ...interface{})

Error logs error level log messages

### func \(\*NoOpLogger\) [Info](https://github.com/gojek/courier-go/blob/main/xds/log/logger.go#L17)
func (l *NoOpLogger) Info(_ string, _ ...interface{})

Info logs info level log messages

Generated by gomarkdoc