perfect.org
Documentation
|
API Documentation
PerfectLib
Perfect-CouchDB
Perfect-CURL
Perfect-Filemaker
Perfect-GoogleAnalytics-MeasurementProtocol
Perfect-HTTP
Perfect-HTTPServer
Perfect-Logger
Perfect-MongoDB
Perfect-Mustache
Perfect-MySQL
Perfect-MariaDB
Perfect-Net
Perfect-Notifications
Perfect-PostgreSQL
Perfect-Redis
Perfect-RequestLogger
Perfect-Session
Perfect-Session-SQLite
Perfect-Session-CouchDB
Perfect-Session-MySQL
Perfect-Session-PostgreSQL
Perfect-SQLite
Perfect-Thread
Perfect-WebSockets
Perfect-XML
Perfect-Zip
Turnstile-Perfect
Perfect-Turnstile-CouchDB
Perfect-Turnstile-MySQL
Perfect-Turnstile-PostgreSQL
Perfect-Turnstile-SQLite
StORM
CouchDB-StORM
MySQL-StORM
Postgres-StORM
SQLite-StORM
Module: Perfect-RequestLogger
struct
RequestLogFile
Contains the location of the default log file.
static var
location = "/var/log/perfectLog.log"
Holds the location of the log file.
class
RequestLogger: HTTPRequestFilter, HTTPResponseFilter
The main class for logging functionality
func
init()
The initializer.
func
filter(request: HTTPRequest, response: HTTPResponse, callback: (HTTPRequestFilterResult) -> ())
Implementation of the HTTPRequestFilter
func
filterHeaders(response: HTTPResponse, callback: (HTTPResponseFilterResult) -> ())
Implement of the HTTPResponseFilter
func
filterBody(response: HTTPResponse, callback: (HTTPResponseFilterResult) -> ())
Implement of the HTTPResponseFilter