Documentation

Horde_Log_Handler_Cli extends Horde_Log_Handler_Stream
in package

Logs to the command line interface using Horde_Cli.

Tags
author

Jan Schneider jan@horde.org

category

Horde

license

http://www.horde.org/licenses/bsd BSD

subpackage

Handlers

Table of Contents

$_cli  : Horde_Cli
A CLI handler.
$_filters  : array<string|int, mixed>
List of filter objects.
$_formatter  : Horde_Log_Formatter
Formats the log message before writing.
$_mode  : string
The open mode.
$_options  : array<string|int, mixed>
Options.
$_stream  : null|stream
Holds the PHP stream to log to.
$_streamOrUrl  : string
The stream to open.
__construct()  : mixed
Class Constructor
__wakeup()  : mixed
Wakup function - reattaches stream.
addFilter()  : mixed
Add a filter specific to this handler.
log()  : mixed
Log a message to this handler.
setOption()  : bool
Sets an option specific to the implementation of the log handler.
write()  : bool
Write a message to the log.

Properties

$_cli

A CLI handler.

protected Horde_Cli $_cli

$_filters

List of filter objects.

protected array<string|int, mixed> $_filters = array()

$_mode

The open mode.

protected string $_mode

$_options

Options.

protected array<string|int, mixed> $_options = array('ident' => '')

$_stream

Holds the PHP stream to log to.

protected null|stream $_stream = \null

$_streamOrUrl

The stream to open.

protected string $_streamOrUrl

Methods

__wakeup()

Wakup function - reattaches stream.

public __wakeup() : mixed
Tags
throws
Horde_Log_Exception
Return values
mixed

log()

Log a message to this handler.

public log(array<string|int, mixed> $event) : mixed
Parameters
$event : array<string|int, mixed>

Log event.

Return values
mixed

setOption()

Sets an option specific to the implementation of the log handler.

public setOption(string $optionKey, mixed $optionValue) : bool
Parameters
$optionKey : string

Key name for the option to be changed. Keys are handler-specific.

$optionValue : mixed

New value to assign to the option

Tags
throws
Horde_Log_Exception
Return values
bool

True.

write()

Write a message to the log.

public write(array<string|int, mixed> $event) : bool
Parameters
$event : array<string|int, mixed>

Log event.

Tags
throws
Horde_Log_Exception
Return values
bool

True.

Search results