Documentation ¶
Overview ¶
Package logging provides helpers regarding logging.
Index ¶
- type ClientLogger
- func (c *ClientLogger) Append(l ...logs.Loggers) error
- func (c *ClientLogger) AppendLogger(l ...logr.Logger) error
- func (c *ClientLogger) Check() error
- func (c *ClientLogger) Close() error
- func (c *ClientLogger) Log(output ...interface{})
- func (c *ClientLogger) LogError(err ...interface{})
- func (c *ClientLogger) LogErrorAndMessage(err error, format string, args ...interface{})
- func (c *ClientLogger) LogErrorMessage(format string, args ...interface{})
- func (c *ClientLogger) LogInfo(format string, args ...interface{})
- func (c *ClientLogger) LogRawError(err error)
- func (c *ClientLogger) LogResource(r resource.IResource)
- func (c *ClientLogger) SetLogSource(source string) error
- func (c *ClientLogger) SetLoggerSource(source string) error
- type ILogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientLogger ¶
type ClientLogger struct {
// contains filtered or unexported fields
}
func (*ClientLogger) AppendLogger ¶
func (c *ClientLogger) AppendLogger(l ...logr.Logger) error
func (*ClientLogger) Check ¶
func (c *ClientLogger) Check() error
func (*ClientLogger) Close ¶
func (c *ClientLogger) Close() error
func (*ClientLogger) Log ¶
func (c *ClientLogger) Log(output ...interface{})
func (*ClientLogger) LogError ¶
func (c *ClientLogger) LogError(err ...interface{})
func (*ClientLogger) LogErrorAndMessage ¶
func (c *ClientLogger) LogErrorAndMessage(err error, format string, args ...interface{})
func (*ClientLogger) LogErrorMessage ¶
func (c *ClientLogger) LogErrorMessage(format string, args ...interface{})
func (*ClientLogger) LogInfo ¶
func (c *ClientLogger) LogInfo(format string, args ...interface{})
func (*ClientLogger) LogRawError ¶
func (c *ClientLogger) LogRawError(err error)
func (*ClientLogger) LogResource ¶
func (c *ClientLogger) LogResource(r resource.IResource)
func (*ClientLogger) SetLogSource ¶
func (c *ClientLogger) SetLogSource(source string) error
func (*ClientLogger) SetLoggerSource ¶
func (c *ClientLogger) SetLoggerSource(source string) error
type ILogger ¶
type ILogger interface { logs.IMultipleLoggers // LogRawError logs an error. LogRawError(err error) LogErrorAndMessage(err error, format string, args ...interface{}) LogErrorMessage(format string, args ...interface{}) LogInfo(format string, args ...interface{}) // LogResource logs the description of an API resource LogResource(r resource.IResource) }
ILogger defines a generic Client logger.
func NewClientLogger ¶
NewClientLogger returns a logger for use in clients. if no default loggers are provided, the logger will be set to print to the standard output.
Click to show internal directories.
Click to hide internal directories.