slog

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 3 Imported by: 0

README

slog

new slog logging lib for go kratos

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(log *slog.Logger) log.Logger

func With

func With(l *slog.Logger, kv ...any) log.Logger

With returns a Logger that includes the given attributes in each output operation

Types

type Logger

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

func (Logger) Log

func (l Logger) Log(level log.Level, keyvals ...interface{}) error

Jump to

Keyboard shortcuts

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