polysemy-log-co: Colog Adapters for Polysemy-Log

[ library, logging ] [ Propose Tags ]
Versions [RSS] 0.1.0.0, 0.2.0.0, 0.2.0.1, 0.2.1.0, 0.2.2.0, 0.2.2.1, 0.2.2.2, 0.2.2.3, 0.2.2.4, 0.3.0.0, 0.3.0.1, 0.3.0.2, 0.4.0.0, 0.4.1.0, 0.4.2.0, 0.4.3.0, 0.5.0.0, 0.6.0.0, 0.6.0.1, 0.7.0.0 (info)
Change log changelog.md
Dependencies base (>=4 && <5), co-log (>=0.4.0.1), co-log-core (>=0.2.1), co-log-polysemy (>=0.0.1.2), polysemy (>=1.5), polysemy-conc (>=0.1.0.0), polysemy-log, polysemy-time (>=0.1.1.0) [details]
License BSD-2-Clause-Patent
Copyright 2021 Torsten Schmits
Author Torsten Schmits
Maintainer tek@tryp.io
Category Logging
Home page https://github.com/tek/polysemy-log#readme
Bug tracker https://github.com/tek/polysemy-log/issues
Source repo head: git clone https://github.com/tek/polysemy-log
Uploaded by tek at 2021-12-21T20:00:25Z
Distributions NixOS:0.7.0.0
Downloads 2065 total (38 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for polysemy-log-co-0.4.1.0

[back to package description]

About

The co-log adapter for polysemy-log.

import Polysemy.Log
import Polysemy.Log.Colog

prog :: Member Log r => Sem r ()
prog = do
  Log.debug "debugging"
  Log.error "failing"

interpretLogColog prog :: Sem [Colog.Log (LogEntry LogMessage), Embed IO] ()
interpretLogStdout prog :: Sem '[Embed IO] ()

For more documentation, please consult Hackage: