polysemy-log-0.10.0.1: Polysemy effects for logging
Safe HaskellSafe-Inferred
LanguageGHC2021

Polysemy.Log.Data.LogEntry

Description

 
Synopsis

Documentation

data LogEntry a Source #

Metadata wrapper for a log message.

Constructors

LogEntry 

Fields

Instances

Instances details
Show a => Show (LogEntry a) Source # 
Instance details

Defined in Polysemy.Log.Data.LogEntry

Methods

showsPrec :: Int -> LogEntry a -> ShowS #

show :: LogEntry a -> String #

showList :: [LogEntry a] -> ShowS #

annotate :: HasCallStack => Member GhcTime r => a -> Sem r (LogEntry a) Source #

Add call stack and timestamp to a message and wrap it with LogEntry.