Documentation ¶
Index ¶
- func New() ocmlogging.Logger
- type TfLogger
- func (l *TfLogger) Debug(ctx context.Context, format string, args ...interface{})
- func (l *TfLogger) DebugEnabled() bool
- func (l *TfLogger) Error(ctx context.Context, format string, args ...interface{})
- func (l *TfLogger) ErrorEnabled() bool
- func (l *TfLogger) Fatal(ctx context.Context, format string, args ...interface{})
- func (l *TfLogger) Info(ctx context.Context, format string, args ...interface{})
- func (l *TfLogger) InfoEnabled() bool
- func (l *TfLogger) Warn(ctx context.Context, format string, args ...interface{})
- func (l *TfLogger) WarnEnabled() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TfLogger ¶
type TfLogger struct {
// contains filtered or unexported fields
}
TfLogger is a logger that uses the Go `log` package.
func (*TfLogger) Debug ¶
Debug sends to the log a debug message formatted using the fmt.Sprintf function and the given format and arguments.
func (*TfLogger) DebugEnabled ¶
DebugEnabled returns true iff the debug level is enabled.
func (*TfLogger) Error ¶
Error sends to the log an error message formatted using the fmt.Sprintf function and the given format and arguments.
func (*TfLogger) ErrorEnabled ¶
ErrorEnabled returns true iff the error level is enabled.
func (*TfLogger) Fatal ¶
Fatal sends to the log an error message formatted using the fmt.Sprintf function and the given format and arguments. After that it will os.Exit(1) This level is always enabled
func (*TfLogger) Info ¶
Info sends to the log an information message formatted using the fmt.Sprintf function and the given format and arguments.
func (*TfLogger) InfoEnabled ¶
InfoEnabled returns true iff the information level is enabled.
func (*TfLogger) Warn ¶
Warn sends to the log a warning message formatted using the fmt.Sprintf function and the given format and arguments.
func (*TfLogger) WarnEnabled ¶
WarnEnabled returns true iff the warning level is enabled.