kratosv2

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefault added in v0.7.1

func SetDefault(l *slog.Logger)

SetDefault updates the process-wide kratos v2 logger delegate.

The kratos v2 global logger object is installed once by this package. Runtime code must update only this delegate, never call kratoslog.SetLogger again.

func Wrap

func Wrap(l *slog.Logger) kratoslog.Logger

Wrap adapts a *slog.Logger to kratos v2 log.Logger. Self-contained; deletable wholesale when kratos v3 ships.

Types

This section is empty.

Jump to

Keyboard shortcuts

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