Discover Packages
github.com/cloud-ru-tech/guardrails-llm-filter-extproc
internal
logging
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jul 13, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Jump to ...
Documentation
Overview
Index
Constants
Variables
Functions
Debug(ctx, msg, kv)
Error(ctx, msg, err, kv)
Fatal(ctx, msg, err, kv)
Info(ctx, msg, kv)
Setup(level, format)
Warn(ctx, msg, kv)
Types
Source Files
Documentation
Documentation
¶
Package logging configures the process-wide slog default logger and
provides thin context-aware helpers used across the service.
The helpers mirror log/slog with one addition: Error and Fatal take the
error as a positional argument, keeping call sites compact.
func Debug(ctx context.Context, msg string, kv ...any)
func Error(ctx context.Context, msg string, err error, kv ...any)
func Fatal(ctx context.Context, msg string, err error, kv ...any)
func Info(ctx context.Context, msg string, kv ...any)
func Setup(level, format string)
func Warn(ctx context.Context, msg string, kv ...any)
Debug logs at debug level with alternating key-value pairs.
Error logs at error level. err may be nil (e.g. a fallback taken without
a concrete error); it is then omitted from the attributes.
Fatal logs at error level and exits the process. Use only from main/boot
paths.
Info logs at info level with alternating key-value pairs.
func Setup(level, format string )
Setup installs the default slog logger.
level: debug | info | warn | error (default info).
format: json (default) | text — text is convenient for local development.
Warn logs at warn level with alternating key-value pairs.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.