hooks

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package hooks contains a collection of several automatic hooks, like:

  1. github.com/echocat/slf4g/hooks/sdklog which configures the SDK's classic log package to use slf4g as its logging backend.
  2. 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).

Jump to

Keyboard shortcuts

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