Documentation
¶
Overview ¶
Package loggingRedirect - Creates a log file the redirects STD output.
Index ¶
- Constants
- func Forward(ctx context.Context, sendFunc func([]byte, error) error, ...) error
- func ReceiveFile(ctx context.Context, filename string, recFunc func() ([]byte, error)) error
- func RedirectStdErr(file *os.File)
- func RestoreOutput()
- func StartRedirectingOutput(logFileAbsolutePath string, logFileName string) error
- func UploadFile(ctx context.Context, filename string, sendFunc func([]byte, error) error) error
- type DefaultLogger
- type Logger
- type LogrLogger
Constants ¶
View Source
const BUFFER_SIZE = 1024
Variables ¶
This section is empty.
Functions ¶
func ReceiveFile ¶
func RedirectStdErr ¶
func StartRedirectingOutput ¶
StartRedirectingOutput
Types ¶
type DefaultLogger ¶ added in v0.28.3
type DefaultLogger struct{}
DefaultLogger is a simple logger that writes to stdout
func (*DefaultLogger) Error ¶ added in v0.28.3
func (d *DefaultLogger) Error(err error, msg string, keysAndValues ...interface{})
func (*DefaultLogger) Info ¶ added in v0.28.3
func (d *DefaultLogger) Info(msg string, keysAndValues ...interface{})
type LogrLogger ¶ added in v0.28.3
type LogrLogger struct {
// contains filtered or unexported fields
}
func NewLogrLogger ¶ added in v0.28.3
func NewLogrLogger(logger logr.Logger) *LogrLogger
NewLogrLogger creates a new LogrLogger instance that wraps a logr.Logger
func (*LogrLogger) Error ¶ added in v0.28.3
func (l *LogrLogger) Error(err error, msg string, keysAndValues ...interface{})
Error logs an error level message
func (*LogrLogger) Info ¶ added in v0.28.3
func (l *LogrLogger) Info(msg string, keysAndValues ...interface{})
Info logs an info level message
Click to show internal directories.
Click to hide internal directories.