polysemy-log-0.4.0.0: Polysemy Effects for Logging
Safe HaskellNone
LanguageHaskell2010

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.