Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_Service_WindowsAzure_Log_Writer_WindowsAzure Class Reference

Public Member Functions

 __construct (Zend_Service_WindowsAzure_Storage_Table $tableStorageConnection, $tableName, $createTable=true, $bufferMessages=true)
 
 shutdown ()
 If the log messages have been stored in the internal buffer, just send them to table storage.
 
 setFormatter (Zend_Service_Log_Formatter_Interface $formatter)
 The only formatter accepted is already loaded in the constructor.
 
- Public Member Functions inherited from Zend_Log_Writer_Abstract
 addFilter ($filter)
 Add a filter specific to this writer.
 
 write ($event)
 Log a message to this writer.
 
 setFormatter (Zend_Log_Formatter_Interface $formatter)
 Set a new formatter for this writer.
 
 shutdown ()
 Perform shutdown activites such as closing open resources.
 

Static Public Member Functions

static factory ($config)
 Create a new instance of Zend_Service_Log_Writer_WindowsAzure.
 

Protected Member Functions

 _write ($event)
 Write a message to the table storage.
 
- Protected Member Functions inherited from Zend_Log_Writer_Abstract
 _write ($event)
 Write a message to the log.
 

Protected Attributes

 $_formatter
 
 $_tableStorageConnection = null
 
 $_tableName = null
 
 $_bufferMessages = false
 
 $_messageBuffer = array()
 
- Protected Attributes inherited from Zend_Log_Writer_Abstract
 $_filters = array()
 
 $_formatter
 

Additional Inherited Members

- Static Protected Member Functions inherited from Zend_Log_Writer_Abstract
static _parseConfig ($config)
 Validate and optionally convert the config to array.
 

Constructor & Destructor Documentation

__construct ( Zend_Service_WindowsAzure_Storage_Table  $tableStorageConnection,
  $tableName,
  $createTable = true,
  $bufferMessages = true 
)
Parameters
Zend_Service_Service_WindowsAzure_Storage_Table | Zend_Service_WindowsAzure_Storage_Table$tableStorageConnection
string$tableName
bool$createTablecreate the Windows Azure table for logging if it does not exist
bool$bufferMessages
Exceptions
Zend_Service_Log_Exception

Member Function Documentation

_write (   $event)
protected

Write a message to the table storage.

If buffering is activated, then messages will just be added to an internal buffer.

Parameters
array$event
Returns
void
Todo:
format the event using a formatted, not in this method
static factory (   $config)
static

Create a new instance of Zend_Service_Log_Writer_WindowsAzure.

Parameters
array$config
Returns
Zend_Service_Log_Writer_WindowsAzure
Exceptions
Zend_Service_Log_Exception

Implements Zend_Log_FactoryInterface.

setFormatter ( Zend_Service_Log_Formatter_Interface  $formatter)

The only formatter accepted is already loaded in the constructor.

Todo:
enable custom formatters using the WindowsAzure_Storage_DynamicTableEntity class
shutdown ( )

If the log messages have been stored in the internal buffer, just send them to table storage.

Member Data Documentation

$_bufferMessages = false
protected
$_formatter
protected
$_messageBuffer = array()
protected
$_tableName = null
protected
$_tableStorageConnection = null
protected