Swap out the formatter for the writer. ZF1: http://framework.zend.com/manual/1.12/en/zend.log.formatters.html
ZF2: http://framework.zend.com/manual/2.0/en/modules/zend.log.formatters.html Cheers, David On 14/09/2012, at 6:17 PM, Steve Rayner <[email protected]> wrote: > Zend_Log has this in the Log() function; > > // pack into event required by filters and writers > $event = array_merge(array('timestamp' => date('c'), > 'message' => $message, > 'priority' => $priority, > 'priorityName' => > $this->_priorities[$priority]), > $this->_extras); > > Which uses ISO format for date. However Firebird database does not > seem to accept dates in this format. > How should I go about overriding the date format in Zend_Log. > > Presumably I would have to create my own Log object that extends from > Zend_Log and override the whole Log() function. > This seems a bit extreme just to reformat a date. > > I would prefer to keep ISO format in Log object and reformat the date > at the database abstraction layer, but it seems > ZendX_Db_Adapter_Firebird is not responcible for reformatting dates > (which imo kinda defeats purpose of database abstraction). > Any thoughts? > > -- > List: [email protected] > Info: http://framework.zend.com/archives > Unsubscribe: [email protected] > > -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
