CodeCTRL
in package
Table of Contents
- $batchHost : mixed
- $batchPort : mixed
- __construct() : mixed
- Creates a new `Logger` with a pre-defined log batch, hostname and port.
- log() : mixed
- The basic log function.
- createServerConnection() : LogClientClient
- logBuilder() : Log
Properties
$batchHost
private
mixed
$batchHost
$batchPort
private
mixed
$batchPort
Methods
__construct()
Creates a new `Logger` with a pre-defined log batch, hostname and port.
public
__construct([mixed $host = "127.0.0.1" ][, mixed $port = 3002 ]) : mixed
Parameters
- $host : mixed = "127.0.0.1"
- $port : mixed = 3002
Return values
mixed —log()
The basic log function.
public
log([mixed $message = "" ][, mixed $surround = 3 ][, mixed $host = "127.0.0.1" ][, mixed $port = 3002 ]) : mixed
Parameters
- $message : mixed = ""
- $surround : mixed = 3
- $host : mixed = "127.0.0.1"
- $port : mixed = 3002
Return values
mixed —createServerConnection()
private
createServerConnection(mixed $host, mixed $port) : LogClientClient
Parameters
- $host : mixed
- $port : mixed
Return values
LogClientClient —logBuilder()
private
logBuilder(mixed $traceOutput, mixed $surround, mixed $message) : Log
Parameters
- $traceOutput : mixed
- $surround : mixed
- $message : mixed