ganeti

Safe HaskellNone

Ganeti.Logging

Contents

Description

Implementation of the Ganeti logging functionality.

This currently lacks the following (FIXME):

  • log file reopening

Note that this requires the hslogger library version 1.1 and above.

Synopsis

Documentation

data SyslogUsage Source

Syslog usage type.

Constructors

SyslogNo 
SyslogYes 
SyslogOnly 

Instances

syslogUsageFromRaw :: forall m. Monad m => String -> m SyslogUsageSource

logFormatter :: String -> Bool -> Bool -> LogFormatter aSource

openFormattedHandler :: LogHandler a => Bool -> LogFormatter a -> IO a -> IO [a]Source

setupLoggingSource

Arguments

:: Maybe String

Log file

-> String

Program name

-> Bool

Debug level

-> Bool

Log to stderr

-> Bool

Log to console

-> SyslogUsage

Syslog usage

-> IO () 

Sets up the logging configuration.

Logging function aliases

logDebug :: String -> IO ()Source

Log at debug level.

logInfo :: String -> IO ()Source

Log at info level.

logNotice :: String -> IO ()Source

Log at notice level.

logWarning :: String -> IO ()Source

Log at warning level.

logError :: String -> IO ()Source

Log at error level.

logCritical :: String -> IO ()Source

Log at critical level.

logAlert :: String -> IO ()Source

Log at alert level.

logEmergency :: String -> IO ()Source

Log at emergency level.