silverstripe\rollbar\writer\RollbarLogWriter
The RollbarLogWriter class simply acts as a bridge between Rollbar and SilverStripe's {@link SS_Log}.
Usage in your project's _config.php for example (See README for examples).
SS_Log::add_writer(\silverstripe\rollbar\RollbarLogWriter::factory(), '<=');
Synopsis
class RollbarLogWriter
extends Zend_Log_Writer_Abstract
{
- // members
- protected $accessToken;
- // methods
- public static RollbarLogWriter factory()
- protected void _write()
- public string getLevel()
- public array getCustom()
- public array getTraces()
- public static string getEnv()
- private string getGitBranch()
- public string getRequestType()
- public string getSAPI()
Hierarchy
Extends
- Zend_Log_Writer_Abstract
Members
protected
- $accessToken
Methods
private
- getGitBranch() — Get current Git branch that's checked out on the server
protected
- _write() — _write() forms the entry point into the physical sending of the error.
public
- factory() — A static constructor.
- getCustom()
- getEnv() — Returns either development or production depending on SS enviroment
- getLevel()
- getRequestType() — What sort of request is this? (A harder question to answer than you might think: http://stackoverflow.com/questions/6275363/what-is-the-correct-terminology-for-a-non-ajax-request)
- getSAPI()
- getTraces()