hslogger-colorfmt: Custom hslogger formatters implementing color output

[ interfaces, library, logging, program ] [ Propose Tags ] [ Report a vulnerability ]

This library adds some custom log formatters implementing color output. We have also added code to pad the Priority strings in log messages if desired.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.0
Change log CHANGELOG.md
Dependencies ansi-terminal (>=1.1 && <2), base (>=3 && <5), hslogger (>=1.3.1.2 && <2), hslogger-colorfmt, time (>=1.12.2 && <2) [details]
License ISC
Copyright 2026 Dino Morelli
Author Dino Morelli
Maintainer dino@ui3.info
Uploaded by DinoMorelli at 2026-08-27T15:16:06Z
Category Interfaces, Logging
Source repo head: git clone https://codeberg.org/dinofp/hslogger-colorfmt
Distributions
Executables hslogger-colorfmt-example
Downloads 0 total (0 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2026-08-27 [all 1 reports]

Readme for hslogger-colorfmt-1.0.0

[back to package description]

hslogger-colorfmt

Synopsis

Custom hslogger formatters implementing color output

Description

This library adds some custom log formatters implementing color output. We have also added code to pad the Priority strings in log messages if desired.

Here's a screenshot of output from some sample code:


For examining and choosing colors, there are many scripts out there for displaying 256 color samples in terminals. Here's a particularly nice one.

Getting source

Source code is available here: hslogger-colorfmt

Handy command to generate Haddock docs during development if using stack. This constrains doc generation to modules in the library:

$ stack haddock --haddock --no-haddock-deps

Contact

Dino Morelli dino@ui3.info

Made by a human badge This work is hand-crafted with no LLM/AI involved