yxorP Documentation

MessageFormatter
in package

Table of Contents

CLF  = "{hostname} {req_header_User-Agent} - [{date_common_log}] \"{method} {target} HTTP/{version}\" {code} {res_header_Content-Length}"
DEBUG  = ">>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"
SHORT  = '[{ts}] "{method} {target} HTTP/{version}" {code}'
$template  : mixed
__construct()  : mixed
format()  : array<string|int, mixed>|string|null
headers()  : string

Constants

CLF

public mixed CLF = "{hostname} {req_header_User-Agent} - [{date_common_log}] \"{method} {target} HTTP/{version}\" {code} {res_header_Content-Length}"

DEBUG

public mixed DEBUG = ">>>>>>>>\n{request}\n<<<<<<<<\n{response}\n--------\n{error}"

SHORT

public mixed SHORT = '[{ts}] "{method} {target} HTTP/{version}" {code}'

Properties

Methods

__construct()

public __construct([mixed $template = self::CLF ]) : mixed
Parameters
$template : mixed = self::CLF
Return values
mixed

Search results