Overview
Log adapter for appending to a file.
Configuration Keys
- events: The event types this instance should recognize; a comma-separated string of events, or a sequential array. Default is all events ('*').
- microtime: Use timestamps with decimal microseconds. Default false.
- file: The file where events should be logged; for example '/www/username/logs/solar.log'.
- format: 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'.
Constants
None.
Public Properties
The Solar_Log_Adapter_File class has no public properties; try the list of all properties.
Public Methods
These are all the public methods in the Solar_Log_Adapter_File 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(). 
- 
dump()
- 
Convenience method for getting a dump the whole object, or one of its properties, or an external variable. 
- 
getEvents()
- 
Gets the list of events this adapter recognizes. 
- 
locale()
- 
Looks up class-specific locale strings based on a key. 
- 
save()
- 
Saves (writes) an event and message to the log. 
- 
setEvents()
- 
Sets the list of events this adapter recognizes.