logutil

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package logutil provides log-level string parsing for zerolog and PostgreSQL query tracing.

It offers a single, consistent parsing point for log-level configuration strings used throughout the application. Unknown levels default to Info.

Basic usage:

level := logutil.ParseZerologLevel("debug")
pgLevel := logutil.ParsePostgresLogLevel("info")

Supported levels: "trace", "debug", "info", "warn", "error", "fatal", "panic" (for zerolog). For PostgreSQL: "trace", "debug", "info", "warn", "error".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePostgresLogLevel

func ParsePostgresLogLevel(level string) tracelog.LogLevel

func ParseZerologLevel

func ParseZerologLevel(level string) zerolog.Level

Types

This section is empty.

Jump to

Keyboard shortcuts

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