#1303: Configuration options for AgaviPassthruLoggerLayout
-------------------------+--------------------------------------------------
 Reporter:  david        |       Owner:  david
     Type:  enhancement  |      Status:  new  
 Priority:  normal       |   Milestone:  1.0.4
Component:  logging      |     Version:  1.0.3
 Severity:  normal       |    Keywords:       
Has_patch:  0            |  
-------------------------+--------------------------------------------------
 Right now, it simply calls {{{AgaviLoggerMessage::__toString()}}}. This
 method returns the message part of the object, and, if it's an array,
 implodes the array using {{{\n}}} first.

 In addition to this, three new modes of operation should be supported:
  1. return the message of {{{AgaviLoggerMessage}}} using
 {{{AgaviLoggerMessage::getMessage()}}} (no further change to the message
 would occur, unlike in the {{{__toString()}}} case),
  1. return a specific parameter of {{{AgaviLoggerMessage}}} (it's an
 {{{AgaviParameterHolder}}}, also see #1302),
  1. return the complete {{{AgaviLoggerMessage}}} object.

 Mode of operation should be configured using parameter {{{mode}}},
 possible values:
  1. {{{to_string}}} (default)
  1. {{{message}}} (call {{{AgaviLoggerMessage::getMessage()}}}
  1. {{{parameter}}} (call {{{AgaviLoggerMessage::getParameter()}}}
   * name of parameter is configured using another parameter called
 {{{parameter}}})
  1. {{{full}}} (return complete {{{AgaviLoggerMessage}}} object)

-- 
Ticket URL: <http://trac.agavi.org/ticket/1303>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5



_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to