ngx-export-log-1.5.2: Native Nginx logging from configuration files and Haskell handlers
Copyright(c) Alexey Radkov 2022
LicenseBSD-style
Maintaineralexey.radkov@gmail.com
Stabilitystable
Portabilitynon-portable (requires Template Haskell)
Safe HaskellSafe-Inferred
LanguageHaskell2010

NgxExport.Log

Description

Native Nginx logging from configuration files and Haskell handlers.

Synopsis

Documentation

data LogLevel Source #

Log severity levels.

Being applied to a certain constructor, function fromEnum returns the value of the corresponding macro definition from ngx_log.h.

logG Source #

Arguments

:: LogLevel

Log severity level

-> ByteString

Log message

-> IO () 

Logs a message to the global Nginx log.

logM Source #

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.

logR Source #

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.

logStderr Source #

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.

logEmerg Source #

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.

logAlert Source #

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.

logCrit Source #

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.

logErr Source #

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.

logWarn Source #

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.

logNotice Source #

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.

logInfo Source #

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.

logDebug Source #

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.

logStderrR Source #

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.

logEmergR Source #

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.

logAlertR Source #

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.

logCritR Source #

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.

logErrR Source #

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.

logWarnR Source #

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.

logNoticeR Source #

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.

logInfoR Source #

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.

logDebugR Source #

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.