sparalog

package module
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Sparalog

Logging with independent streaming levels.

logger diagram

dispatcher diagram

Features

  • One logger, multiple writers for every logging level.
  • Thread safe.
  • Light and tested.
  • Logs panics from all goroutines without defer.

Notes

  • Writers internal errors are redirected to the default writer.

Copyright 2020,2023 Modulo srl - Licensed under the MIT license

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitUnitTest added in v1.0.0

func InitUnitTest()

Da chiamare prima di ogni unit test.

func Start added in v1.0.0

func Start()

Avvia il logger di default. Va chiamata una volta che i writer sono stati inizializzati e associati.

func Stop added in v1.0.0

func Stop()

Termina il sistema di logging. Gestisce i panic (della routine corrente), termina i logger attendendo gentilmente il termine dei writer asincroni. Va chiamata al termine del main.

Types

This section is empty.

Directories

Path Synopsis
examples
custom_Item command
instances command
minimal command
panic command
payload command
telegram_writer command
writers command

Jump to

Keyboard shortcuts

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