cspray/SprayFire — Issue #2: Logger Interface
Author: cspray
Created: 2011-12-23 19:02:01+00:00
State: open
Labels: milestone-issue

This interface should provide a very simple way to write to a file on disk. What should be required to satisfy this interface should include:

- A `__construct()` that requires the passing of a [`SplFileObject`](http://www.php.net/manual/en/class.splfileobject.php) which should have its permissions set to allow writing to the file. If the file is not writable a `IOFailureException` will be thrown.
- A `write()` method that simply accepts a string message, verifies it is a string or properly casts it to a string and then uses whatever file was passed