|
Previous Class |
Solar_Log |
Next Page |
Solar_Log
Factory for a log adapter.
<?php
// example setup of a single adapter
$config = array(
'adapter' => 'Solar_Log_Adapter_File',
'events' => '*',
'file' => '/path/to/file.log',
);
$log = Solar::factory('Solar_Log', $config);
// write/record/report/etc an event in the log.
// note that we don't do "priority levels" here, just
// class names and event types.
$log->save('class_name', 'event_name', 'message text');
?>
Catalog
This class is part of the Solar_Log package.
Inheritance:
- Solar_Base
- Solar_Log
Constants
None.
Public Properties
The Solar_Log class has no public properties; try the list of all properties.
Public Methods
These are all the public methods in the Solar_Log class.
You can also view the list of all public, protected, and private methods.
__construct()- Constructor.
__destruct()- Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
apiVersion()- Reports the API version for this class.
dump()- Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
locale()- Looks up class-specific locale strings based on a key.
solarFactory()- Factory method for returning adapters.