logger

package
v1.11.13 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package logger uses the zap logging library for application logs. The development mode prints all feedback to stdout.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Development

func Development() *zap.Logger

Development logger prints all log levels to stdout.

func PrintCR

func PrintCR(w io.Writer, a ...any)

PrintCR otherwise erases the current line and writes to standard output.

func PrintfCR

func PrintfCR(w io.Writer, format string, a ...any)

PrintfCR erases the current line and formats according to a format specifier.

func Production

func Production() *zap.Logger

Production logger prints all info and higher log levels to stdout.

func SPrintPath

func SPrintPath(name string) string

SPrintPath returns the named file or directory path with all missing elements marked in red.

Types

This section is empty.

Directories

Path Synopsis
internal
terminal
Package terminal returns information on the host Linux terminal.
Package terminal returns information on the host Linux terminal.

Jump to

Keyboard shortcuts

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