[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/logger/layout/ -> patternlayout.class.php (sommaire)

(pas de description)

Poids: 138 lignes (5 kb)
Inclus ou requis:0 fois
Référencé: 1 fois
Nécessite: 0 fichiers

Définit 1 class

PatternLayout:: (5 méthodes):
  PatternLayout()
  getPriorityNumber()
  getStackTrace()
  printableStackTrace()
  format()


Classe: PatternLayout  - X-Ref

PatternLayout allows a completely customizable layout that uses a conversion
pattern for formatting.

\ingroup logger
PatternLayout($pattern)   X-Ref
Create a new PatternLayout instance.


getPriorityNumber( $prio )   X-Ref


getStackTrace()   X-Ref

returns: returns an array containing information about the stack, or an empty array

printableStackTrace()   X-Ref

returns: returns an string containing a full stack trace, one step of the stack

format(&$message)   X-Ref
Format a log message.

<b>Conversion characters:</b>

<ul>
<li><b>%c</b>               - the class where message was logged</li>
<li><b>%d</b>               - current date</li>
<li><b>%f</b>               - the file where the message was logged</li>
<li><b>%F</b>               - the function where the message was
logged</li>
<li><b>%l</b>               - the line where the message was logged</li>
<li><b>%m</b>               - the log message</li>
<li><b>%n</b>               - a newline</li>
<li><b>%N</b>               - the level name</li>
<li><b>%p</b>               - the level of priority</li>
<li><b>%r</b>               - a carriage return</li>
<li><b>%t</b>               - a horizontal tab</li>
<li><b>%T</b>               - a unix timestamp (seconds since January
1st, 1970)</li>
<li><b>%S</b>               - the full stack trace, if available</li>
</ul>

param: Message A Message instance.
return: string A formatted log message.



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics