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

logging

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package logging constructs console and file outputs for the default Zap logger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(level string, console io.Writer, filePath string) (logger.Logger, func() error, error)

New writes readable text to the console and optional JSON to a rotating file. Nil console selects stderr; an empty filePath disables file output. The caller calls close after transports and application resources have stopped.

func Report

func Report(err error)

Report writes a terminal startup/runtime error before process exit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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