category Zend
package Zend_Service_WindowsAzure
subpackage Log
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Log_Writer_Abstract

 Methods

__construct()

__construct(\Zend_Service_Service_WindowsAzure_Storage_Table|\Zend_Service_WindowsAzure_Storage_Table $tableStorageConnection, string $tableName, boolean $createTable = true, boolean $bufferMessages = true

Parameters

$tableStorageConnection

\Zend_Service_Service_WindowsAzure_Storage_Table\Zend_Service_WindowsAzure_Storage_Table

$tableName

string

$createTable

boolean

create the Windows Azure table for logging if it does not exist

$bufferMessages

boolean

Exceptions

\Zend_Service_Log_Exception

Add a filter specific to this writer.

addFilter(\Zend_Log_Filter_Interface|integer $filter) : \Zend_Log_Writer_Abstract
Inherited

Parameters

$filter

\Zend_Log_Filter_Interfaceinteger

Filter class or filter priority

Exceptions

\Zend_Log_Exception

Returns

\Zend_Log_Writer_Abstract

Create a new instance of Zend_Service_Log_Writer_WindowsAzure

factory(array $config) : \Zend_Service_Log_Writer_WindowsAzure
Static

Parameters

$config

array

Exceptions

\Zend_Service_Log_Exception

Returns

\Zend_Service_Log_Writer_WindowsAzure

The only formatter accepted is already loaded in the constructor

setFormatter(\Zend_Service_Log_Formatter_Interface $formatter) 
todo enable custom formatters using the WindowsAzure_Storage_DynamicTableEntity class
inherited_from \Zend_Log_Writer_Abstract::setFormatter()

Parameters

$formatter

Set a new formatter for this writer

setFormatter(\Zend_Log_Formatter_Interface $formatter) : \Zend_Log_Writer_Abstract
Inherited

Parameters

$formatter

\Zend_Log_Formatter_Interface

Returns

\Zend_Log_Writer_Abstract

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

shutdown() 
inherited_from \Zend_Log_Writer_Abstract::shutdown()

Perform shutdown activites such as closing open resources

shutdown() : void
Inherited

Log a message to this writer.

write(array $event) : void
Inherited

Parameters

$event

array

log data event

Validate and optionally convert the config to array

_parseConfig(array|\Zend_Config $config) : array
InheritedStatic

Parameters

$config

array\Zend_Config

Zend_Config or Array

Exceptions

\Zend_Log_Exception

Returns

array

Write a message to the table storage. If buffering is activated, then messages will just be added to an internal buffer.

_write(array $event) : void
todo format the event using a formatted, not in this method
inherited_from \Zend_Log_Writer_Abstract::_write()

Parameters

$event

array

Write a message to the log.

_write(array $event) : void
Inherited

Parameters

$event

array

log data event

 Properties

 

Whether to keep all messages to be logged in an external buffer until the script ends and only then to send the messages in batch to the logging component.

$_bufferMessages : boolean

Default

false
 

of Zend_Log_Filter_Interface

$_filters : array

Default

array()
 

Formats the log message before writing.

$_formatter : \Zend_Service_Log_Formatter_Interface

Default

inherited_from \Zend_Log_Writer_Abstract::_formatter
 

Formats the log message before writing.

$_formatter : \Zend_Log_Formatter_Interface

Default

 

If message buffering is activated, it will store all the messages in this buffer and only write them to table storage (in a batch transaction) when the script ends.

$_messageBuffer : array

Default

array()
 

Name of the table to use for logging purposes

$_tableName : string

Default

null
 

Connection to a windows Azure

$_tableStorageConnection : \Zend_Service_Service_WindowsAzure_Storage_Table

Default

null