Class FluentLogger
Fluent Logger
Fluent Logger client communicates to Fluentd with json formatted messages.
- Fluent\Logger\BaseLogger implements Fluent\Logger\LoggerInterface
- Fluent\Logger\FluentLogger
public
|
#
__construct( string $host =
create fluent logger object. |
public static
string
|
#
getTransportUri(
make a various style transport uri with specified host and port. currently, in_foward uses tcp transport only. |
public
|
|
public
|
|
public
|
|
public
|
|
public static
|
#
open( string $host =
fluent-logger compatible API. |
public static
|
|
protected
|
|
protected
|
|
public
boolean
|
|
public
boolean
|
|
protected
|
|
protected
mixed
|
|
public
|
|
public
mixed
|
defaultErrorHandler(),
processError(),
registerErrorHandler()
|
integer
|
CONNECTION_TIMEOUT
|
3 |
|
integer
|
SOCKET_TIMEOUT
|
3 |
|
integer
|
MAX_WRITE_RETRY
|
10 |
|
integer
|
USLEEP_WAIT
|
1000 |
|
integer
|
DEFAULT_LISTEN_PORT
|
24224 |
|
string
|
DEFAULT_ADDRESS
|
"127.0.0.1" |
protected
|
$host |
|
|
protected
|
$port |
|
|
protected
|
$transport |
|
|
protected
|
$socket |
|
|
protected
|
$packer |
|
|
protected
array
|
$options | array(
"socket_timeout" => self::SOCKET_TIMEOUT,
"connection_timeout" => self::CONNECTION_TIMEOUT,
"usleep_wait" => self::USLEEP_WAIT,
) |
|
protected static
array
|
$supported_transports | array(
"tcp","unix",
) |
|
protected static
array
|
$acceptable_options | array(
"socket_timeout", "connection_timeout","usleep_wait",
) |
|
protected static
array
|
$instances | array() |
$error_handler
|