Polysemy.Log.Data.LogEntry
Description
data LogEntry a Source #
Metadata wrapper for a log message.
Constructors
Fields
The time at which the log entry was created.
The call stack of the function in which the entry was created.
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.
LogEntry