Categorygithub.com/DiviProject/divilog
modulepackage
1.0.0
Repository: https://github.com/diviproject/divilog.git
Documentation: pkg.go.dev

# README

divilog

Build Status ISC License GoDoc

Package divilog defines a logger interface and provides a default implementation of a subsystem-aware leveled logger implementing the same interface.

Installation

$ go get github.com/DiviProject/divilog

License

Package divilog is licensed under the copyfree ISC License.

# Functions

LevelFromString returns a level based on the input string s.
NewBackend creates a logger backend from a Writer.
WithFlags configures a Backend to use the specified flags rather than using the package's defaults as determined through the LOGFLAGS environment variable.

# Constants

Level constants.
Level constants.
Level constants.
Level constants.
Level constants.
Level constants.
Level constants.
Llongfile modifies the logger output to include full path and line number of the logging callsite, e.g.
Lshortfile modifies the logger output to include filename and line number of the logging callsite, e.g.

# Variables

Disabled is a Logger that will never output anything.

# Structs

Backend is a logging backend.

# Interfaces

Logger is an interface which describes a level-based logger.

# Type aliases

BackendOption is a function used to modify the behavior of a Backend.
Level is the level at which a logger is configured.