Creates a database logger. The table must implement the following columns: logToken (VARCHAR) logType (ENUM ("error", "notFound", "after", "before", "staticFile")) applicationName (VARCHAR) authToken (VARCHAR) requestIPAddress (VARCHAR) requestMethod (VARCHAR) requestHeaders (TEXT) requestBody (TEXT) requestUrl (VARCHAR) responseHeaders (TEXT) responseBody (TEXT) responseStatusCode (INT) message (TEXT) timestamp (DATETIME)
The type of the logger.
The table to log entries to.
An optional callback after the log has been written.
A connection string to associate with the logging. If none is specified then it will use the default connection string.
See Implementation
Creates a database logger. The table must implement the following columns: logToken (VARCHAR) logType (ENUM ("error", "notFound", "after", "before", "staticFile")) applicationName (VARCHAR) authToken (VARCHAR) requestIPAddress (VARCHAR) requestMethod (VARCHAR) requestHeaders (TEXT) requestBody (TEXT) requestUrl (VARCHAR) responseHeaders (TEXT) responseBody (TEXT) responseStatusCode (INT) message (TEXT) timestamp (DATETIME)