logging

package module
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 14

README

Logging

Logging is a Go library that holds a set of standardized utilities and interfaces for logging within Loophole Labs projects.

Discord Go Version Go Reference

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/loopholelabs/logging. For more contribution information check out the contribution guide.

License

The Logging project is available as open source under the terms of the Apache License, Version 2.0.

Code of Conduct

Everyone interacting in the Logging project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the CNCF Code of Conduct.

Project Managed By:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New added in v0.2.0

func New(kind Kind, source string, output io.Writer) types.Logger

New creates a new logger based on the given kind, source, and output and a default level of Info.

func NewTest added in v0.2.0

func NewTest(t testing.TB, kind Kind, source string) types.Logger

Types

type Kind added in v0.2.0

type Kind int
const (
	Noop Kind = iota
	Zerolog
	Slog
)

Directories

Path Synopsis
adapters
loggers

Jump to

Keyboard shortcuts

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