Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data DataLog a :: Effect where
- type Logger = DataLog (LogEntry LogMessage)
- log :: HasCallStack => Members [Logger, GhcTime] r => Severity -> Text -> Sem r ()
- trace :: HasCallStack => Members [Logger, GhcTime] r => Text -> Sem r ()
- debug :: HasCallStack => Members [Logger, GhcTime] r => Text -> Sem r ()
- info :: HasCallStack => Members [Logger, GhcTime] r => Text -> Sem r ()
- warn :: HasCallStack => Members [Logger, GhcTime] r => Text -> Sem r ()
- error :: HasCallStack => Members [Logger, GhcTime] r => Text -> Sem r ()
- crit :: HasCallStack => Members [Logger, GhcTime] r => Text -> Sem r ()
Documentation
type Logger = DataLog (LogEntry LogMessage) Source #
Alias for the logger with the default message type used by Log
.
log :: HasCallStack => Members [Logger, GhcTime] r => Severity -> Text -> Sem r () Source #
Log a text message with the given severity.
Basic Sem
constructor.
trace :: HasCallStack => Members [Logger, GhcTime] r => Text -> Sem r () Source #
Log a text message with the Trace
severity.
debug :: HasCallStack => Members [Logger, GhcTime] r => Text -> Sem r () Source #
Log a text message with the Debug
severity.
info :: HasCallStack => Members [Logger, GhcTime] r => Text -> Sem r () Source #
Log a text message with the Info
severity.
warn :: HasCallStack => Members [Logger, GhcTime] r => Text -> Sem r () Source #
Log a text message with the Warn
severity.