Version: current

# Class SS_LogFileWriter

Sends an error message to an email whenever an error occurs in sapphire.

Note: You need to make sure your web server is able to write to the file path that you specify to write logs to.

  Zend_Log_Writer_Abstract
  SS_LogFileWriter

Package: sapphire\dev
See: SS_Log for more information on using writers.
Uses: error_log() built-in PHP function.
Located at sapphire/dev/LogFileWriter.php

## Methods summary

`public` | # `__construct( mixed $path, mixed $messageType = 3, mixed $extraHeaders = '' )`
`public` | # `_write( mixed $event )` Write the log message to the file path set in this writer. Write the log message to the file path set in this writer.

### Magic methods summary

## Properties summary

`protected string` | $path | # The path to the file that errors will be stored in. For example, "/var/logs/silverstripe/errors.log". The path to the file that errors will be stored in. For example, "/var/logs/silverstripe/errors.log".
`protected integer` | $messageType | # Message type to pass to error_log() Message type to pass to error_log() #### See http://us3.php.net/manual/en/function.error-log.php
`protected string` | $extraHeaders | # Extra headers to pass to error_log() Extra headers to pass to error_log() #### See http://us3.php.net/manual/en/function.error-log.php

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -