CliFormatter
in package
implements
LogFormatter
Formatter for the command line interface using Horde_Cli.
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $cli : Horde_Cli
- A CLI handler.
- __construct() : mixed
- Constructor.
- format() : string
- Formats an event to be written by the handler.
Properties
$cli
A CLI handler.
protected
Horde_Cli
$cli
Methods
__construct()
Constructor.
public
__construct(Horde_Cli $cli) : mixed
Parameters
- $cli : Horde_Cli
-
A Horde_Cli instance.
Return values
mixed —format()
Formats an event to be written by the handler.
public
format(LogMessage $event) : string
Parameters
- $event : LogMessage
-
Log event.
Return values
string —Formatted line.