| Copyright | (c) 2018-2022 Kowainik 2023-2025 Co-Log |
|---|---|
| License | MPL-2.0 |
| Safe Haskell | None |
| Language | Haskell2010 |
Colog.Actions
Description
Logging actions for various text types.
Synopsis
- logByteStringStdout :: forall (m :: Type -> Type). MonadIO m => LogAction m ByteString
- logByteStringStderr :: forall (m :: Type -> Type). MonadIO m => LogAction m ByteString
- logByteStringHandle :: forall (m :: Type -> Type). MonadIO m => Handle -> LogAction m ByteString
- withLogByteStringFile :: forall (m :: Type -> Type) r. MonadIO m => FilePath -> (LogAction m ByteString -> IO r) -> IO r
- logTextStdout :: forall (m :: Type -> Type). MonadIO m => LogAction m Text
- logTextStderr :: forall (m :: Type -> Type). MonadIO m => LogAction m Text
- logTextHandle :: forall (m :: Type -> Type). MonadIO m => Handle -> LogAction m Text
- withLogTextFile :: forall (m :: Type -> Type) r. MonadIO m => FilePath -> (LogAction m Text -> IO r) -> IO r
- simpleMessageAction :: forall (m :: Type -> Type). MonadIO m => LogAction m Message
- richMessageAction :: forall (m :: Type -> Type). MonadIO m => LogAction m Message
ByteString actions
logByteStringStdout :: forall (m :: Type -> Type). MonadIO m => LogAction m ByteString Source #
Action that prints ByteString to stdout.
This action does not flush the output buffer.
If buffering mode is block buffering, the effect of this action can be delayed.
logByteStringStderr :: forall (m :: Type -> Type). MonadIO m => LogAction m ByteString Source #
Action that prints ByteString to stderr.
This action does not flush the output buffer.
If buffering mode is block buffering, the effect of this action can be delayed.
logByteStringHandle :: forall (m :: Type -> Type). MonadIO m => Handle -> LogAction m ByteString Source #
Action that prints ByteString to Handle.
This action does not flush the output buffer.
If buffering mode is block buffering, the effect of this action can be delayed.
withLogByteStringFile :: forall (m :: Type -> Type) r. MonadIO m => FilePath -> (LogAction m ByteString -> IO r) -> IO r Source #
Action that prints ByteString to file. See
withLogStringFile for details.
Text actions
logTextStdout :: forall (m :: Type -> Type). MonadIO m => LogAction m Text Source #
Action that prints Text to stdout.
This action does not flush the output buffer.
If buffering mode is block buffering, the effect of this action can be delayed.
logTextStderr :: forall (m :: Type -> Type). MonadIO m => LogAction m Text Source #
Action that prints Text to stderr.
This action does not flush the output buffer.
If buffering mode is block buffering, the effect of this action can be delayed.
withLogTextFile :: forall (m :: Type -> Type) r. MonadIO m => FilePath -> (LogAction m Text -> IO r) -> IO r Source #
Action that prints Text to file. See
withLogStringFile for details.
Message actions
Default logging actions to make the usage with Messages easier.