logger

package
v0.0.0-...-9d8ded8 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 0 Imported by: 4

Documentation

Overview

Package logger provides a generic interface around message loggers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log interface {
	// Any logs a key-value pair.
	Any(s string, a any) Log
	// Fatal sends a fatal message then exit.
	Fatal()
	// Error sends an error message.
	Error()
	// Warn sends a warning message.
	Warn()
	// Info sends an info message.
	Info()
	// Debug sends a debug message.
	Debug()
}

Log represents a message log.

type Logger

type Logger interface {
	// New creates a new log.
	New(a ...any) Log
}

Logger represents a message logger.

Directories

Path Synopsis
charm module
console module
file module
syslog module

Jump to

Keyboard shortcuts

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