/usr/share/doc/libghc-fast-logger-doc/html/fast-logger.txt is in libghc-fast-logger-doc 2.4.1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | -- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | A fast logging system
--
-- A fast logging system
@package fast-logger
@version 2.4.1
module System.Log.FastLogger.File
-- | The spec for logging files
data FileLogSpec
FileLogSpec :: FilePath -> Integer -> Int -> FileLogSpec
[log_file] :: FileLogSpec -> FilePath
[log_file_size] :: FileLogSpec -> Integer
[log_backup_number] :: FileLogSpec -> Int
-- | Checking if a log file can be written.
check :: FileLogSpec -> IO ()
-- | Rotating log files.
rotate :: FileLogSpec -> IO ()
-- | This module provides a fast logging system which scales on multicore
-- environments (i.e. +RTS -N<x>).
module System.Log.FastLogger
-- | A set of loggers. The number of loggers is the capabilities of GHC
-- RTS. You can specify it with "+RTS -N<x>". A buffer is prepared
-- for each capability.
data LoggerSet
-- | Creating a new <a>LoggerSet</a> using a file.
newFileLoggerSet :: BufSize -> FilePath -> IO LoggerSet
-- | Creating a new <a>LoggerSet</a> using stdout.
newStdoutLoggerSet :: BufSize -> IO LoggerSet
-- | Creating a new <a>LoggerSet</a> using stderr.
newStderrLoggerSet :: BufSize -> IO LoggerSet
-- | Creating a new <a>LoggerSet</a>. If <a>Nothing</a> is specified to the
-- second argument, stdout is used. Please note that the minimum
-- <a>BufSize</a> is 1.
-- | <i>Deprecated: Use newFileLoggerSet etc instead</i>
newLoggerSet :: BufSize -> Maybe FilePath -> IO LoggerSet
-- | The type for buffer size of each core.
type BufSize = Int
-- | The default buffer size (4,096 bytes).
defaultBufSize :: BufSize
-- | Renewing the internal file information in <a>LoggerSet</a>. This does
-- nothing for stdout and stderr.
renewLoggerSet :: LoggerSet -> IO ()
-- | Flushing the buffers, closing the internal file information and
-- freeing the buffers.
rmLoggerSet :: LoggerSet -> IO ()
-- | Log message builder. Use (<a><></a>) to append two LogStr in
-- O(1).
data LogStr
class ToLogStr msg
toLogStr :: ToLogStr msg => msg -> LogStr
-- | Converting <a>LogStr</a> to <a>ByteString</a>.
fromLogStr :: LogStr -> ByteString
-- | Obtaining the length of <a>LogStr</a>.
logStrLength :: LogStr -> Int
-- | Writing a log message to the corresponding buffer. If the buffer
-- becomes full, the log messages in the buffer are written to its
-- corresponding file, stdout, or stderr.
pushLogStr :: LoggerSet -> LogStr -> IO ()
-- | Same as <a>pushLogStr</a> but also appends a newline.
pushLogStrLn :: LoggerSet -> LogStr -> IO ()
-- | Flushing log messages in buffers. This function must be called
-- explicitly when the program is being terminated.
--
-- Note: Since version 2.1.6, this function does not need to be
-- explicitly called, as every push includes an auto-debounced flush
-- courtesy of the auto-update package. Since version 2.2.2, this
-- function can be used to force flushing outside of the debounced flush
-- calls.
flushLogStr :: LoggerSet -> IO ()
|