common

package
v0.0.0-...-fcd0a94 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheLogger

type CacheLogger struct {
	// contains filtered or unexported fields
}

func NewCacheLogger

func NewCacheLogger() *CacheLogger

func (*CacheLogger) Clear

func (l *CacheLogger) Clear()

func (*CacheLogger) Content

func (l *CacheLogger) Content() []string

func (*CacheLogger) ContentString

func (l *CacheLogger) ContentString() string

func (*CacheLogger) Error

func (l *CacheLogger) Error(msg string)

func (*CacheLogger) Errorf

func (l *CacheLogger) Errorf(msg string, args ...any)

func (*CacheLogger) Info

func (l *CacheLogger) Info(msg string)

func (*CacheLogger) Infof

func (l *CacheLogger) Infof(msg string, args ...any)

func (*CacheLogger) Panic

func (l *CacheLogger) Panic(msg string)

func (*CacheLogger) Panicf

func (l *CacheLogger) Panicf(msg string, args ...any)

func (*CacheLogger) Warn

func (l *CacheLogger) Warn(msg string)

func (*CacheLogger) Warnf

func (l *CacheLogger) Warnf(msg string, args ...any)

type ConsoleLogger

type ConsoleLogger struct {
	// contains filtered or unexported fields
}

func NewConsoleLogger

func NewConsoleLogger() ConsoleLogger

func (ConsoleLogger) Clear

func (l ConsoleLogger) Clear()

func (ConsoleLogger) Content

func (l ConsoleLogger) Content() []string

func (ConsoleLogger) ContentString

func (l ConsoleLogger) ContentString() string

func (ConsoleLogger) Error

func (l ConsoleLogger) Error(msg string)

func (ConsoleLogger) Errorf

func (l ConsoleLogger) Errorf(msg string, args ...any)

func (ConsoleLogger) Info

func (l ConsoleLogger) Info(msg string)

func (ConsoleLogger) Infof

func (l ConsoleLogger) Infof(msg string, args ...any)

func (ConsoleLogger) Panic

func (l ConsoleLogger) Panic(msg string)

func (ConsoleLogger) Panicf

func (l ConsoleLogger) Panicf(msg string, args ...any)

func (ConsoleLogger) Warn

func (l ConsoleLogger) Warn(msg string)

func (ConsoleLogger) Warnf

func (l ConsoleLogger) Warnf(msg string, args ...any)

type DevNullLogger

type DevNullLogger struct {
}

func NewDevNullLogger

func NewDevNullLogger() DevNullLogger

func (DevNullLogger) Clear

func (l DevNullLogger) Clear()

func (DevNullLogger) Content

func (l DevNullLogger) Content() []string

func (DevNullLogger) ContentString

func (l DevNullLogger) ContentString() string

func (DevNullLogger) Error

func (l DevNullLogger) Error(msg string)

func (DevNullLogger) Errorf

func (l DevNullLogger) Errorf(format string, args ...any)

func (DevNullLogger) Info

func (l DevNullLogger) Info(msg string)

func (DevNullLogger) Infof

func (l DevNullLogger) Infof(format string, args ...any)

func (DevNullLogger) Panic

func (l DevNullLogger) Panic(msg string)

func (DevNullLogger) Panicf

func (l DevNullLogger) Panicf(format string, args ...any)

func (DevNullLogger) Warn

func (l DevNullLogger) Warn(msg string)

func (DevNullLogger) Warnf

func (l DevNullLogger) Warnf(format string, args ...any)

type Logger

type Logger interface {
	Info(msg string)
	Warn(msg string)
	Error(msg string)
	Panic(msg string)
	Infof(format string, args ...any)
	Warnf(format string, args ...any)
	Errorf(format string, args ...any)
	Panicf(format string, args ...any)
	ContentString() string
	Content() []string
	Clear()
}

Jump to

Keyboard shortcuts

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