logger

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package logger contains logger API definition, wrapper that can be used around any other logger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitWithError

func ExitWithError(code *int)

ExitWithError closes the current process with error code.

func New

func New(w io.Writer, levelText string) (*slog.Logger, error)

New returns wrapped slog logger.

func NewMock

func NewMock() *slog.Logger

NewMock returns wrapped slog logger mock.

Types

This section is empty.

Jump to

Keyboard shortcuts

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