quick

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config added in v1.2.1

func Config(args ...string) error

Config changes the logger configuration with string statements. e.g. quick.Config("level=debug")

func Debug

func Debug(args ...any)

Debug logs a debug message. Message is dropped if logger's level is higher than debug.

func DebugTrace

func DebugTrace(depth int, args ...any)

DebugTrace is Debug log with trace.

func Error

func Error(args ...any)

Error logs an error message. Message is dropped if logger's level is higher than error.

func ErrorTrace

func ErrorTrace(depth int, args ...any)

ErrorTrace is Error log with trace.

func Info

func Info(args ...any)

Info logs an info message. Message is dropped if logger's level is higher than info.

func InfoTrace

func InfoTrace(depth int, args ...any)

InfoTrace is Info log with trace.

func Log added in v1.2.1

func Log(args ...any)

Log writes a log record without log level.

func LogTrace added in v1.2.1

func LogTrace(depth int, args ...any)

Log writes a log record with trace and without log level.

func Message added in v1.2.1

func Message(args ...any)

Message writes a log record without timestamp and log level.

func Shutdown

func Shutdown()

Shutdown performs a graceful shutdown of the logger with default default timeout

func Warn

func Warn(args ...any)

Warn logs a warning message. Message is dropped if logger's level is higher than warn.

func WarnTrace

func WarnTrace(depth int, args ...any)

WarnTrace is Warning log with trace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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