pretty

package
v1.24.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package pretty contains the implementation of `kubectl cnpg logs pretty`

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownLogLevel = errors.New("unknown log level")

ErrUnknownLogLevel is returned when an unknown string representation of a log level is used

Functions

func NewCmd

func NewCmd() *cobra.Command

NewCmd creates a new `kubectl cnpg logs pretty` command

Types

type LogLevel

type LogLevel string

LogLevel represents a log level such as error, warning, info, debug, or trace.

func (LogLevel) Less

func (l LogLevel) Less(o LogLevel) bool

Less returns true when the received event is less than the passed one

func (*LogLevel) Set

func (l *LogLevel) Set(val string) error

Set sets a log level given its string representation

func (LogLevel) String

func (l LogLevel) String() string

String is the string representation of this level

func (LogLevel) Type

func (l LogLevel) Type() string

Type is the data type to be used for this type when used as a flag

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL