Help us shape the future of Go! Take the 2026 Go Developer Survey

logging

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package logging wraps github.com/op/go-logging so every package can declare a module-scoped logger with `var log = logging.MustGetLogger("<package>")`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(levelName string)

Setup configures the global logging backend at the given level (for example "info" or "debug"), writing formatted output to stderr.

Types

type Logger

type Logger = logging.Logger

Logger is the concrete logger type returned by MustGetLogger.

func MustGetLogger

func MustGetLogger(module string) *Logger

MustGetLogger returns a logger scoped to the given module name.

Jump to

Keyboard shortcuts

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