unclogging-0.1.0.1: a library which implements easy, concurrent and pretty logging
Safe HaskellNone
LanguageGHC2021

Unclog.Frontend

Description

functions for splicing in static information and creating log entries from it

Synopsis

generic logging functions

mkLogEntry :: forall (q :: Type -> Type). (Quote q, Quasi q) => LogLevel -> Code q (Time -> StrictByteString -> LogEntry) Source #

splice in the location and loglevel

communicating with the backend

publishLogEntry :: PLogChan -> LogEntry -> STM () Source #

given a LogChan, publish a log entry to it

helpers

spliceLoc :: forall (q :: Type -> Type). (Quote q, Quasi q) => Code q Location Source #