Documentation ¶
Index ¶
- func SetLogger()
- type TfLogger
- func (tfLogger *TfLogger) Debugf(ctx context.Context, format string, v ...any)
- func (tfLogger *TfLogger) Enabled(_ context.Context, _ logger.Level) bool
- func (tfLogger *TfLogger) Errorf(ctx context.Context, format string, v ...any)
- func (tfLogger *TfLogger) Infof(ctx context.Context, format string, v ...any)
- func (tfLogger *TfLogger) Tracef(ctx context.Context, format string, v ...any)
- func (tfLogger *TfLogger) Warnf(ctx context.Context, format string, v ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TfLogger ¶
type TfLogger struct {
Name string
}
func (*TfLogger) Enabled ¶
This function is always enabled because TfLogger implements the Logger interface from Go SDK and there we check if the logging is enabled based on level (which default to Info). This however isn't possible here since tflog isn't enabled / disabled based on log level. Omitting is done internally through the `ShouldOmit` method that filters based on logger configurations.
Click to show internal directories.
Click to hide internal directories.