Safe Haskell | None |
---|---|
Language | Haskell2010 |
Basic data types used throughout the package.
Synopsis
- data LogLevel
- showLogLevel :: LogLevel -> Text
- readLogLevel :: Text -> LogLevel
- data LogMessage = LogMessage {}
- showLogMessage :: Maybe UTCTime -> LogMessage -> Text
Documentation
Available log levels.
showLogLevel :: LogLevel -> Text Source #
readLogLevel :: Text -> LogLevel Source #
This function is partial.
data LogMessage Source #
Represents message to be logged.
Instances
Eq LogMessage Source # | |
Defined in Log.Data (==) :: LogMessage -> LogMessage -> Bool # (/=) :: LogMessage -> LogMessage -> Bool # | |
Show LogMessage Source # | |
Defined in Log.Data showsPrec :: Int -> LogMessage -> ShowS # show :: LogMessage -> String # showList :: [LogMessage] -> ShowS # | |
ToJSON LogMessage Source # | |
Defined in Log.Data toJSON :: LogMessage -> Value # toEncoding :: LogMessage -> Encoding # toJSONList :: [LogMessage] -> Value # toEncodingList :: [LogMessage] -> Encoding # | |
FromJSON LogMessage Source # | |
Defined in Log.Data parseJSON :: Value -> Parser LogMessage # parseJSONList :: Value -> Parser [LogMessage] # | |
NFData LogMessage Source # | |
Defined in Log.Data rnf :: LogMessage -> () # |
:: Maybe UTCTime | The time that message was added to the log. |
-> LogMessage | The actual message. |
-> Text |
Render a LogMessage
to Text
.