logger

package
v0.0.0-...-49abd51 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package logger creates a log stream for the labpack executable.

Index

Constants

View Source
const (
	// DefaultFormat is optional formatting which can be used for logger.
	DefaultFormat = `%{time:2006-01-02T15:04:05:00} %{level:-5s}| %{shortfile:25s}| %{message}`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	logger.Logger
	Close()
}

Logger is interface for logger with closing.

func NewLogger

func NewLogger(ctx context.Context, callDepth int, logDir string, stdLevel logging.Level, format string, createFiles bool) (_ context.Context, _ Logger, rErr error)

NewLogger creates a custom logger config with custom formatter.

Jump to

Keyboard shortcuts

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