Documentation ¶
Index ¶
- Variables
- func EnableGroupSession(logger interface{}) func()
- func New(options ...LoggerOption) logr.Logger
- type Colors
- type GroupedLogger
- type LoggerOption
- func CheckMarkCharacter(m rune) LoggerOption
- func Color(colors Colors) LoggerOption
- func Err(w io.Writer) LoggerOption
- func ErrorMarkCharacter(m rune) LoggerOption
- func Grouppable() LoggerOption
- func Out(w io.Writer) LoggerOption
- func SeparatorCharacter(m rune) LoggerOption
- func Truncate() LoggerOption
- func WithName(name string) LoggerOption
- func WithTime(format string) LoggerOption
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalLogLevel = 1
View Source
var Log logr.Logger = New()
Functions ¶
func EnableGroupSession ¶
func EnableGroupSession(logger interface{}) func()
func New ¶
func New(options ...LoggerOption) logr.Logger
Types ¶
type GroupedLogger ¶
type GroupedLogger interface {
Grouped(state bool)
}
type LoggerOption ¶
type LoggerOption func(*logger)
func CheckMarkCharacter ¶
func CheckMarkCharacter(m rune) LoggerOption
func Color ¶
func Color(colors Colors) LoggerOption
func Err ¶
func Err(w io.Writer) LoggerOption
func ErrorMarkCharacter ¶
func ErrorMarkCharacter(m rune) LoggerOption
func Grouppable ¶
func Grouppable() LoggerOption
func Out ¶
func Out(w io.Writer) LoggerOption
func SeparatorCharacter ¶
func SeparatorCharacter(m rune) LoggerOption
func Truncate ¶
func Truncate() LoggerOption
func WithName ¶
func WithName(name string) LoggerOption
func WithTime ¶
func WithTime(format string) LoggerOption
Click to show internal directories.
Click to hide internal directories.