$request $request : \HttpLog\HttpModels\Request Type \HttpLog\HttpModels\Request — The Request object to be logged.
$response $response : \HttpLog\HttpModels\Request Type \HttpLog\HttpModels\Request — The Response object to be logged.
$default_log $default_log : boolean Type boolean — Whether to also log all errors to PHP's default error log file.
__construct() __construct(string $filter, boolean $default_log) : void Create a base logger object. Parameters string $filter Applied log filter. boolean $default_log Whether to also log all errors to PHP's default error log file.
store_error() store_error(array $error_data) : void Store the error. Store the error data associated with a faulty request in an error array. Parameters array $error_data Error data.
__call() __call(string $name, array $arguments) : void Dynamically call custom logging. Based on the method name (level), allow a user to manually log an error. Parameters string $name Name of the called method. array $arguments Arguments of the called method.
is_using_default_log() is_using_default_log() : boolean Get "default log" setting. Get whether to also log all errors to PHP's default error log file, in addition to the logger's custom file. Returns boolean — Is default logger being used or not.
create_log_models() create_log_models() : void Create log models. Create Request and Response objects, filled with corresponding data.
process_filters() process_filters() : array Process filters. Sort all filters into Request and Response filters. Returns array — Sorted filter array.
map_error() map_error(string $name) : array Map errors. Map user-defined errors to their respective log levels and error codes. Parameters string $name Logging level name. Returns array — Log level and error code.