Documentation ¶
Index ¶
- type StructuredLog
- func (l *StructuredLog) Box(ctx context.Context, title string, lines string)
- func (l *StructuredLog) Debug(ctx context.Context, msg string, args ...any)
- func (l *StructuredLog) Error(ctx context.Context, msg string, args ...any)
- func (l *StructuredLog) ExternalLogHandler(ctx context.Context, msgType consts.CustomExternalLogLevel, message string)
- func (l *StructuredLog) ExternalLogHandlerf(ctx context.Context, msgType consts.CustomExternalLogLevel, format string, ...)
- func (l *StructuredLog) NewError(ctx context.Context, format string, args ...any) error
- func (l *StructuredLog) Note(ctx context.Context, msg string, args ...any)
- func (l *StructuredLog) Print(ctx context.Context, msg string, args ...any)
- func (l *StructuredLog) Success(ctx context.Context, msg string, args ...any)
- func (l *StructuredLog) Table(ctx context.Context, data []cloudController.AllClusterData)
- func (l *StructuredLog) Warn(ctx context.Context, msg string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StructuredLog ¶ added in v1.2.0
type StructuredLog struct {
// contains filtered or unexported fields
}
func NewStructuredLogger ¶ added in v1.2.0
func NewStructuredLogger(verbose int, out io.Writer) *StructuredLog
func (*StructuredLog) Box ¶ added in v1.2.0
func (l *StructuredLog) Box(ctx context.Context, title string, lines string)
func (*StructuredLog) Debug ¶ added in v1.2.0
func (l *StructuredLog) Debug(ctx context.Context, msg string, args ...any)
func (*StructuredLog) Error ¶ added in v1.2.0
func (l *StructuredLog) Error(ctx context.Context, msg string, args ...any)
func (*StructuredLog) ExternalLogHandler ¶ added in v1.2.0
func (l *StructuredLog) ExternalLogHandler(ctx context.Context, msgType consts.CustomExternalLogLevel, message string)
func (*StructuredLog) ExternalLogHandlerf ¶ added in v1.2.0
func (l *StructuredLog) ExternalLogHandlerf(ctx context.Context, msgType consts.CustomExternalLogLevel, format string, args ...interface{})
func (*StructuredLog) Note ¶ added in v1.2.0
func (l *StructuredLog) Note(ctx context.Context, msg string, args ...any)
func (*StructuredLog) Print ¶ added in v1.2.0
func (l *StructuredLog) Print(ctx context.Context, msg string, args ...any)
func (*StructuredLog) Success ¶ added in v1.2.0
func (l *StructuredLog) Success(ctx context.Context, msg string, args ...any)
func (*StructuredLog) Table ¶ added in v1.2.0
func (l *StructuredLog) Table(ctx context.Context, data []cloudController.AllClusterData)
Click to show internal directories.
Click to hide internal directories.