logkc

package
v0.0.0-...-211e212 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package logkc contains project-wide logging configuration and tools

Index

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 New

func New(component types.Component, ops ...logOption) *zap.SugaredLogger

func PrintHeader

func PrintHeader()

func WithErrorOutputPaths

func WithErrorOutputPaths(paths []string) logOption

func WithLogLevel

func WithLogLevel(level zapcore.Level) logOption

func WithName

func WithName(name string) logOption

func WithOutputPaths

func WithOutputPaths(paths []string) logOption

func WithWriter

func WithWriter(writer io.Writer) logOption

Types

type LogOptions

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

func (*LogOptions) Apply

func (o *LogOptions) Apply(opts ...logOption)

Jump to

Keyboard shortcuts

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