| Copyright | (c) Alexey Radkov 2022 |
|---|---|
| License | BSD-style |
| Maintainer | alexey.radkov@gmail.com |
| Stability | stable |
| Portability | non-portable (requires Template Haskell) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
NgxExport.Log
Description
Native Nginx logging from configuration files and Haskell handlers.
Synopsis
- data LogLevel
- logG :: LogLevel -> ByteString -> IO ()
- logM :: LogLevel -> Ptr () -> ByteString -> IO ()
- logR :: LogLevel -> ByteString -> IO ()
- logStderr :: ByteString -> IO ByteString
- logEmerg :: ByteString -> IO ByteString
- logAlert :: ByteString -> IO ByteString
- logCrit :: ByteString -> IO ByteString
- logErr :: ByteString -> IO ByteString
- logWarn :: ByteString -> IO ByteString
- logNotice :: ByteString -> IO ByteString
- logInfo :: ByteString -> IO ByteString
- logDebug :: ByteString -> IO ByteString
- logStderrR :: ByteString -> IO ByteString
- logEmergR :: ByteString -> IO ByteString
- logAlertR :: ByteString -> IO ByteString
- logCritR :: ByteString -> IO ByteString
- logErrR :: ByteString -> IO ByteString
- logWarnR :: ByteString -> IO ByteString
- logNoticeR :: ByteString -> IO ByteString
- logInfoR :: ByteString -> IO ByteString
- logDebugR :: ByteString -> IO ByteString
Documentation
Log severity levels.
Being applied to a certain constructor, function fromEnum returns the value
of the corresponding macro definition from ngx_log.h.
Instances
| Enum LogLevel Source # | |
Defined in NgxExport.Log.Base | |
Arguments
| :: LogLevel | Log severity level |
| -> ByteString | Log message |
| -> IO () |
Logs a message to the global Nginx log.
Arguments
| :: LogLevel | Log severity level |
| -> Ptr () | Pointer to the Nginx request object |
| -> ByteString | Log message |
| -> IO () |
Logs a message to the request's Nginx log.
This function accepts a pointer to the Nginx request object supposedly unmarshalled from Nginx variable $_r_ptr.
Arguments
| :: LogLevel | Log severity level |
| -> ByteString | Log message |
| -> IO () |
Logs a message to the request's Nginx log.
This function expects that the log message contains the value of Nginx variable $_r_ptr at the beginning of the log message. All whitespace characters following the value of $_r_ptr are skipped.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogStderr to the global Nginx log.
This is the core function of the logStderr handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogEmerg to the global Nginx log.
This is the core function of the logEmerg handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogAlert to the global Nginx log.
This is the core function of the logAlert handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogCrit to the global Nginx log.
This is the core function of the logCrit handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogErr to the global Nginx log.
This is the core function of the logErr handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogWarn to the global Nginx log.
This is the core function of the logWarn handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogNotice to the global Nginx log.
This is the core function of the logNotice handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogInfo to the global Nginx log.
This is the core function of the logInfo handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogDebug to the global Nginx log.
This is the core function of the logDebug handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogStderr to the request's Nginx log.
This is the core function of the logStderrR handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogEmerg to the request's Nginx log.
This is the core function of the logEmergR handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogAlert to the request's Nginx log.
This is the core function of the logAlertR handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogCrit to the request's Nginx log.
This is the core function of the logCritR handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogErr to the request's Nginx log.
This is the core function of the logErrR handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogWarn to the request's Nginx log.
This is the core function of the logWarnR handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogNotice to the request's Nginx log.
This is the core function of the logNoticeR handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogInfo to the request's Nginx log.
This is the core function of the logInfoR handler.
Arguments
| :: ByteString | Log message |
| -> IO ByteString |
Logs a message with severity LogDebug to the request's Nginx log.
This is the core function of the logDebugR handler.