Previous Page
Constants

Solar_Log_Adapter_File
Properties

Next Page
Methods

Properties

Public

None.

Protected

$_Solar_Log_Adapter

(array) User-defined configuration values.

Inherited from Solar_Log_Adapter.

Keys are ...

events
(string|array) The event types this instance should recognize; a comma-separated string of events, or a sequential array. Default is all events ('*').
microtime
(bool) Use timestamps with decimal microseconds. Default false.

$_Solar_Log_Adapter_File

(array) User-defined configuration values.

Keys are ...

events
(string|array) The event types this instance should recognize; a comma-separated string of events, or a sequential array. Default is all events ('*').
file
(string) The file where events should be logged; for example '/www/username/logs/solar.log'.
format
(string) The line format for each saved event. Use '%t' for the timestamp, '%c' for the class name, '%e' for the event type, '%m' for the event description, and '%%' for a literal percent. Default is '%t %c %e %m'.

$_config

(array) Collection point for configuration values.

Inherited from Solar_Base.

Note that you do not define config defaults in $_config directly.

<?php
// DO NOT DO THIS
protected $_config = array(
    'foo' => 'bar',
    'baz' => 'dib',
);
?>

Instead, define config defaults in a protected property named for the class, withan underscore prefix.

For exmple, a "Vendor_Class_Name" class would define the default config array in "$_Vendor_Class_Name". This convention lets child classes inherit parent config keys and values.

<?php
// DO THIS INSTEAD
protected $_Vendor_Class_Name = array(
    'foo' => 'bar',
    'baz' => 'dib',
);
?>

$_events

(array) The event types this instance will recognize, default '*'.

Inherited from Solar_Log_Adapter.

If you try to save an event type not in this list, the adapter should not record it.

$_file

(string) The path to the log file.

Private

None.