glog.git

module
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: LGPL-2.1, LGPL-2.1-or-later

README

glog

Go Reference

A re-implementation of dlog in Go.

Usage

The module's import path is new.git.deavmi.assigned.network/deavmi/glog.git and then you can make use of all the packages within.

StdLogger

The StdLogger in std/logger is most likely what you will want to be using as it has support for level-based filtering (via LevelFilter) and uses an Appender which logs messages that show the log level, the message text and more.

Structured logging

For structured logging support take a look at the structured which contains the StructuredLogger which will consume a LogRecord and then turn its key-value pairs into JSON key-value mappings (via the StructuredAppender) and then write this out to a specific io.Writer (or standard output by default).

Interface compatibility

The StdLogger is compatible with the FreeFaces logging API, this means that any project which makes use of such an API for logging can have the StdLogger instance dropped right in.

TODO

  • Switch to Meson build system
  • TODO - backport changes to dlog

License

Please see LICENSE.

Directories

Path Synopsis
std

Jump to

Keyboard shortcuts

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