-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | syslog output for monad-logger
--   
--   syslog output for monad-logger
@package monad-logger-syslog
@version 0.1.4.0

module System.Log.MonadLogger.Syslog

-- | Runs a <a>LoggingT</a>, sending its output to the syslog. The logs are
--   formatted the same as <a>runStdoutLoggingT</a>, but the
--   <a>LogLevel</a> is converted to a syslog priority value (but still
--   included in the log message).
runSyslogLoggingT :: LoggingT m a -> m a

-- | Same as <a>defaultSyslogOutput</a>.
syslogOutput :: Loc -> LogSource -> LogLevel -> LogStr -> IO ()

-- | This invokes <a>formattedSyslogOutput</a> with <a>defaultLogStr</a>.
--   This means that the resulting log messages are the same as the default
--   format used by <a>Control.Monad.Logger</a>.
defaultSyslogOutput :: Loc -> LogSource -> LogLevel -> LogStr -> IO ()

-- | Given a <a>Control.Monad.Logger</a> log formatter, this writes the log
--   to the syslog,
formattedSyslogOutput :: (Loc -> LogSource -> LogLevel -> LogStr -> LogStr) -> Loc -> LogSource -> LogLevel -> LogStr -> IO ()


-- | Example:
--   
--   <pre>
--   import Control.Monad.Logger ( logDebugN  )
--   import Control.Monad.Logger.Syslog ( runSyslogLoggingT )
--   
--   main :: IO ()
--   main = runSyslogLoggingT (logDebugN "HELLO!")
--   </pre>
module Control.Monad.Logger.Syslog
