Documentation ¶
Overview ¶
Package logkc contains project-wide logging configuration and tools
Index ¶
- Variables
- func New(component types.Component, ops ...logOption) *zap.SugaredLogger
- func PrintHeader()
- func WithErrorOutputPaths(paths []string) logOption
- func WithLogLevel(level zapcore.Level) logOption
- func WithName(name string) logOption
- func WithOutputPaths(paths []string) logOption
- func WithWriter(writer io.Writer) logOption
- type LogOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BigAsciiText = `` /* 179-byte string literal not displayed */ BigAsciiTextColored = strings.Join([]string{ "\x1b[33m __ __\x1b[0m ", "\x1b[33m / /____ __/ /_ ___ \x1b[0m\x1b[34m__________\x1b[0m", "\x1b[33m / //_/ / / / __ \\/ _ \\\x1b[0m\x1b[34m/ ___/ ___/\x1b[0m", "\x1b[33m / ,< / /_/ / /_/ / __/ \x1b[0m\x1b[34m/__/ /__ \x1b[0m", "\x1b[33m/_/|_|\\__,_/_.___/\\___/\x1b[0m\x1b[34m\\___/\\___/ \x1b[0m\n", }, "\n") )
View Source
var Logger logProvider
Functions ¶
func PrintHeader ¶
func PrintHeader()
func WithErrorOutputPaths ¶
func WithErrorOutputPaths(paths []string) logOption
func WithLogLevel ¶
func WithOutputPaths ¶
func WithOutputPaths(paths []string) logOption
func WithWriter ¶
Types ¶
type LogOptions ¶
type LogOptions struct {
// contains filtered or unexported fields
}
func (*LogOptions) Apply ¶
func (o *LogOptions) Apply(opts ...logOption)
Click to show internal directories.
Click to hide internal directories.