logger

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package logger 直接调用loggger来输出日志

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, args ...any)

Debug logs at [LevelDebug].

func DebugContext

func DebugContext(ctx context.Context, msg string, args ...any)

DebugContext logs at [LevelDebug] with the given context.

func Error

func Error(msg string, args ...any)

Error logs at [LevelError].

func ErrorContext

func ErrorContext(ctx context.Context, msg string, args ...any)

ErrorContext logs at [LevelError] with the given context.

func Info

func Info(msg string, args ...any)

Info logs at [LevelInfo].

func InfoContext

func InfoContext(ctx context.Context, msg string, args ...any)

InfoContext logs at [LevelInfo] with the given context.

func Warn

func Warn(msg string, args ...any)

Warn logs at [LevelWarn].

func WarnContext

func WarnContext(ctx context.Context, msg string, args ...any)

WarnContext logs at [LevelWarn] with the given context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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