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');
This class is part of the Solar_Log package.
adapter: The adapter class to use, for example 'Solar_Log_Adapter_File'. Default is 'Solar_Log_Adapter_None'.
The Solar_Log class has no public properties; try the list of all properties.
These are all the public methods in the Solar_Log class.
You can also view the list of all public, protected, and private methods.
Disallow all calls to methods besides factory() and the existing support methods.
Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
Factory method for returning adapter objects.
Looks up class-specific locale strings based on a key.