Creative Commons License
Excepto donde se indique otra cosa, todo el contenido de este lugar está bajo una licencia de Creative Commons.
Taquiones > perl > cpan > Log::Log4perl

Log::Log4perl

El módulo Log::Log4perl permite registrar eventos en un programa y es especialmente recomendable por las siguientes características:

PENDIENTE DE COMPLETAR

Plantillas para mensajes

Cuando se utiliza una plantilla (pattern layout) para generar mensajes en un canal (appender), es posible emplear un buen número de expresiones que son sustituídas por valores extraídos del entorno del evento.

La lista inicial es la siguiente:

  • %c Categoría del evento
  • %C Nombre del paquete (ó de la clase) del autor del registro, completamente cualificado.
  • %d %C Fully qualified package (or class) name of the caller %d Current date in yyyy/MM/dd hh:mm:ss format %F File where the logging event occurred %H Hostname (if Sys::Hostname is available) %l Fully qualified name of the calling method followed by %the callers source the file name and line number between parentheses. %L Line number within the file where the %log statement was issued %m The message to be logged %M Method or function where the %logging request was issued %n Newline (OS-independent) %p Priority of the %logging event %P pid of the %current process %r Number of %milliseconds %elapsed from %program start %to logging event %T A %stack %trace %of %functions %called %x %The %topmost %NDC %(see %below) %X{key} %The %entry %'key' %of %the %MDC %(see %below) %% %A %literal %percent %(%) %sign