sparalog

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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