\HttpLogHttpLogger

Summary

Methods
Properties
Constants
create()
get()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$logger
N/A

Properties

$logger

$logger : \HttpLog\BaseLogger

Type

\HttpLog\BaseLogger — The logger instance.

Methods

create()

create(string  $type = "file", string  $filter = "full+h", string  $path = "logs/debug.log", boolean  $default_log = true) : \HttpLog\HttpLogger

Create the incoming request/response logger.

Choose the log type and additional log parameters.

Parameters

string $type

Log type (file, MySQL or MongoDB).

string $filter

Filter defintion (which properties will be logged).

string $path

Log path.

boolean $default_log

Whether to also log all errors to PHP's default error log file.

Returns

\HttpLog\HttpLogger

A subtype of a logger.

get()

get() : \HttpLog\BaseLogger

Get the logger instance.

Return an instance of the previously created logger.

Returns

\HttpLog\BaseLogger —

The logger instance.