Documentation
¶
Overview ¶
Package hooks contains a collection of several automatic hooks, like:
- github.com/echocat/slf4g/hooks/sdklog which configures the SDK's classic log package to use slf4g as its logging backend.
- github.com/echocat/slf4g/hooks/sdkslog which configures the SDK's modern log/slog package to use slf4g as its logging backend.
Simply import those packages as follows:
import ( // For hook into SDK's log package _ "github.com/echocat/slf4g/hooks/sdklog" // For hook into SDK's log/slog package _ "github.com/echocat/slf4g/hooks/sdkslog" )
Directories
¶
| Path | Synopsis |
|---|---|
|
Package hook_sdklog is an automatic hook for usage together with Go's SDK logging (log.Logger).
|
Package hook_sdklog is an automatic hook for usage together with Go's SDK logging (log.Logger). |
|
Package hook_sdkslog is an automatic hook for usage together with Go's SDK log/slog logging (log/slog.Logger).
|
Package hook_sdkslog is an automatic hook for usage together with Go's SDK log/slog logging (log/slog.Logger). |
Click to show internal directories.
Click to hide internal directories.