<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!--NewPage--> | |
<HTML> | |
<HEAD> | |
<!-- Generated by javadoc (build 1.5.0_02) on Mon Feb 05 10:30:42 PST 2007 --> | |
<TITLE> | |
LogSystemCommonsLog (VelocityTools 1.3 Documentation) | |
</TITLE> | |
<META NAME="keywords" CONTENT="org.apache.velocity.tools.generic.log.LogSystemCommonsLog class"> | |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> | |
<SCRIPT type="text/javascript"> | |
function windowTitle() | |
{ | |
parent.document.title="LogSystemCommonsLog (VelocityTools 1.3 Documentation)"; | |
} | |
</SCRIPT> | |
<NOSCRIPT> | |
</NOSCRIPT> | |
</HEAD> | |
<BODY BGCOLOR="white" onload="windowTitle();"> | |
<!-- ========= START OF TOP NAVBAR ======= --> | |
<A NAME="navbar_top"><!-- --></A> | |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_top_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../../../org/apache/velocity/tools/generic/log/CommonsLogLogSystem.html" title="class in org.apache.velocity.tools.generic.log"><B>PREV CLASS</B></A> | |
NEXT CLASS</FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../../../index.html?org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="LogSystemCommonsLog.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_top"></A> | |
<!-- ========= END OF TOP NAVBAR ========= --> | |
<HR> | |
<!-- ======== START OF CLASS DATA ======== --> | |
<H2> | |
<FONT SIZE="-1"> | |
org.apache.velocity.tools.generic.log</FONT> | |
<BR> | |
Class LogSystemCommonsLog</H2> | |
<PRE> | |
java.lang.Object | |
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.velocity.tools.generic.log.LogSystemCommonsLog</B> | |
</PRE> | |
<DL> | |
<DT><B>All Implemented Interfaces:</B> <DD>org.apache.commons.logging.Log</DD> | |
</DL> | |
<HR> | |
<DL> | |
<DT><PRE>public class <B>LogSystemCommonsLog</B><DT>extends java.lang.Object<DT>implements org.apache.commons.logging.Log</DL> | |
</PRE> | |
<P> | |
Redirects commons-logging messages to Velocity's LogSystem. | |
<p>To use, specify this class in your commons-logging.properties: | |
<code> | |
org.apache.commons.logging.Log=org.apache.velocity.tools.generic.log.LogSystemCommonsLog | |
</code> | |
</p> | |
<P> | |
<P> | |
<DL> | |
<DT><B>Version:</B></DT> | |
<DD>$Id: LogSystemCommonsLog.java 493518 2007-01-06 17:47:14Z cbrisson $</DD> | |
</DL> | |
<HR> | |
<P> | |
<!-- =========== FIELD SUMMARY =========== --> | |
<A NAME="field_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Field Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>protected static org.apache.velocity.app.VelocityEngine</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#handler">handler</A></B></CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#printStackTrace">printStackTrace</A></B></CODE> | |
<BR> | |
</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> | |
<A NAME="constructor_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Constructor Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#LogSystemCommonsLog()">LogSystemCommonsLog</A></B>()</CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#LogSystemCommonsLog(boolean)">LogSystemCommonsLog</A></B>(boolean pst)</CODE> | |
<BR> | |
Lets you set whether or not this instance should print the | |
full stack trace of exceptions and errors passed to it.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#LogSystemCommonsLog(boolean, java.lang.String)">LogSystemCommonsLog</A></B>(boolean pst, | |
java.lang.String name)</CODE> | |
<BR> | |
Lets you set whether or not this instance should print the | |
full stack trace of exceptions and errors passed to it.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#LogSystemCommonsLog(java.lang.String)">LogSystemCommonsLog</A></B>(java.lang.String name)</CODE> | |
<BR> | |
</TD> | |
</TR> | |
</TABLE> | |
| |
<!-- ========== METHOD SUMMARY =========== --> | |
<A NAME="method_summary"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> | |
<B>Method Summary</B></FONT></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#debug(java.lang.Object)">debug</A></B>(java.lang.Object message)</CODE> | |
<BR> | |
Passes messages to Velocity's LogSystem at "DEBUG" level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#debug(java.lang.Object, java.lang.Throwable)">debug</A></B>(java.lang.Object message, | |
java.lang.Throwable t)</CODE> | |
<BR> | |
Passes messages to Velocity's LogSystem at "DEBUG" level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#error(java.lang.Object)">error</A></B>(java.lang.Object message)</CODE> | |
<BR> | |
Passes messages to Velocity's LogSystem at "ERROR" level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#error(java.lang.Object, java.lang.Throwable)">error</A></B>(java.lang.Object message, | |
java.lang.Throwable t)</CODE> | |
<BR> | |
Passes messages to Velocity's LogSystem at "ERROR" level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#fatal(java.lang.Object)">fatal</A></B>(java.lang.Object message)</CODE> | |
<BR> | |
Passes messages to Velocity's LogSystem at "ERROR" level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#fatal(java.lang.Object, java.lang.Throwable)">fatal</A></B>(java.lang.Object message, | |
java.lang.Throwable t)</CODE> | |
<BR> | |
Passes messages to Velocity's LogSystem at "ERROR" level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#info(java.lang.Object)">info</A></B>(java.lang.Object message)</CODE> | |
<BR> | |
Passes messages to Velocity's LogSystem at "INFO" level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#info(java.lang.Object, java.lang.Throwable)">info</A></B>(java.lang.Object message, | |
java.lang.Throwable t)</CODE> | |
<BR> | |
Passes messages to Velocity's LogSystem at "INFO" level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#isDebugEnabled()">isDebugEnabled</A></B>()</CODE> | |
<BR> | |
Always returns true since Velocity's LogSystem | |
doesn't provide this information.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#isErrorEnabled()">isErrorEnabled</A></B>()</CODE> | |
<BR> | |
Always returns true since Velocity's LogSystem | |
doesn't provide this information.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#isFatalEnabled()">isFatalEnabled</A></B>()</CODE> | |
<BR> | |
Always returns true since Velocity's LogSystem | |
doesn't provide this information.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#isInfoEnabled()">isInfoEnabled</A></B>()</CODE> | |
<BR> | |
Always returns true since Velocity's LogSystem | |
doesn't provide this information.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#isTraceEnabled()">isTraceEnabled</A></B>()</CODE> | |
<BR> | |
Always returns true since Velocity's LogSystem | |
doesn't provide this information.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> boolean</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#isWarnEnabled()">isWarnEnabled</A></B>()</CODE> | |
<BR> | |
Always returns true since Velocity's LogSystem | |
doesn't provide this information.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#log(int, java.lang.Object)">log</A></B>(int level, | |
java.lang.Object message)</CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>private void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#log(int, java.lang.Object, java.lang.Throwable)">log</A></B>(int level, | |
java.lang.Object message, | |
java.lang.Throwable t)</CODE> | |
<BR> | |
</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE>static void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#setVelocityEngine(org.apache.velocity.app.VelocityEngine)">setVelocityEngine</A></B>(org.apache.velocity.app.VelocityEngine engine)</CODE> | |
<BR> | |
Set a VelocityEngine to handle all the log messages.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#trace(java.lang.Object)">trace</A></B>(java.lang.Object message)</CODE> | |
<BR> | |
Passes messages to Velocity's LogSystem at "DEBUG" level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#trace(java.lang.Object, java.lang.Throwable)">trace</A></B>(java.lang.Object message, | |
java.lang.Throwable t)</CODE> | |
<BR> | |
Passes messages to Velocity's LogSystem at "DEBUG" level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#warn(java.lang.Object)">warn</A></B>(java.lang.Object message)</CODE> | |
<BR> | |
Passes messages to Velocity's LogSystem at "WARN" level.</TD> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> | |
<CODE> void</CODE></FONT></TD> | |
<TD><CODE><B><A HREF="../../../../../../org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html#warn(java.lang.Object, java.lang.Throwable)">warn</A></B>(java.lang.Object message, | |
java.lang.Throwable t)</CODE> | |
<BR> | |
Passes messages to Velocity's LogSystem at "WARN" level.</TD> | |
</TR> | |
</TABLE> | |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> | |
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> | |
</TR> | |
<TR BGCOLOR="white" CLASS="TableRowColor"> | |
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> | |
</TR> | |
</TABLE> | |
| |
<P> | |
<!-- ============ FIELD DETAIL =========== --> | |
<A NAME="field_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Field Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="handler"><!-- --></A><H3> | |
handler</H3> | |
<PRE> | |
protected static org.apache.velocity.app.VelocityEngine <B>handler</B></PRE> | |
<DL> | |
<DL> | |
</DL> | |
</DL> | |
<HR> | |
<A NAME="printStackTrace"><!-- --></A><H3> | |
printStackTrace</H3> | |
<PRE> | |
private boolean <B>printStackTrace</B></PRE> | |
<DL> | |
<DL> | |
</DL> | |
</DL> | |
<!-- ========= CONSTRUCTOR DETAIL ======== --> | |
<A NAME="constructor_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Constructor Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="LogSystemCommonsLog()"><!-- --></A><H3> | |
LogSystemCommonsLog</H3> | |
<PRE> | |
public <B>LogSystemCommonsLog</B>()</PRE> | |
<DL> | |
</DL> | |
<HR> | |
<A NAME="LogSystemCommonsLog(java.lang.String)"><!-- --></A><H3> | |
LogSystemCommonsLog</H3> | |
<PRE> | |
public <B>LogSystemCommonsLog</B>(java.lang.String name)</PRE> | |
<DL> | |
</DL> | |
<HR> | |
<A NAME="LogSystemCommonsLog(boolean)"><!-- --></A><H3> | |
LogSystemCommonsLog</H3> | |
<PRE> | |
public <B>LogSystemCommonsLog</B>(boolean pst)</PRE> | |
<DL> | |
<DD>Lets you set whether or not this instance should print the | |
full stack trace of exceptions and errors passed to it. | |
<p>It should be possible to create a LogFactory implementation | |
that takes advantage of this constructor.</p> | |
<P> | |
<DL> | |
<DT><B>Parameters:</B><DD><CODE>pst</CODE> - if true, stack traces will be printed</DL> | |
</DL> | |
<HR> | |
<A NAME="LogSystemCommonsLog(boolean, java.lang.String)"><!-- --></A><H3> | |
LogSystemCommonsLog</H3> | |
<PRE> | |
public <B>LogSystemCommonsLog</B>(boolean pst, | |
java.lang.String name)</PRE> | |
<DL> | |
<DD>Lets you set whether or not this instance should print the | |
full stack trace of exceptions and errors passed to it. | |
<p>It should be possible to create a LogFactory implementation | |
that takes advantage of this constructor.</p> | |
<P> | |
<DL> | |
<DT><B>Parameters:</B><DD><CODE>pst</CODE> - if true, stack traces will be printed<DD><CODE>name</CODE> - the name of this logger</DL> | |
</DL> | |
<!-- ============ METHOD DETAIL ========== --> | |
<A NAME="method_detail"><!-- --></A> | |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> | |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> | |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> | |
<B>Method Detail</B></FONT></TH> | |
</TR> | |
</TABLE> | |
<A NAME="setVelocityEngine(org.apache.velocity.app.VelocityEngine)"><!-- --></A><H3> | |
setVelocityEngine</H3> | |
<PRE> | |
public static void <B>setVelocityEngine</B>(org.apache.velocity.app.VelocityEngine engine)</PRE> | |
<DL> | |
<DD>Set a VelocityEngine to handle all the log messages. | |
<P> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="log(int, java.lang.Object)"><!-- --></A><H3> | |
log</H3> | |
<PRE> | |
private void <B>log</B>(int level, | |
java.lang.Object message)</PRE> | |
<DL> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="log(int, java.lang.Object, java.lang.Throwable)"><!-- --></A><H3> | |
log</H3> | |
<PRE> | |
private void <B>log</B>(int level, | |
java.lang.Object message, | |
java.lang.Throwable t)</PRE> | |
<DL> | |
<DD><DL> | |
</DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="trace(java.lang.Object)"><!-- --></A><H3> | |
trace</H3> | |
<PRE> | |
public void <B>trace</B>(java.lang.Object message)</PRE> | |
<DL> | |
<DD>Passes messages to Velocity's LogSystem at "DEBUG" level. | |
(it's the lowest available. sorry.) | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>trace</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="trace(java.lang.Object, java.lang.Throwable)"><!-- --></A><H3> | |
trace</H3> | |
<PRE> | |
public void <B>trace</B>(java.lang.Object message, | |
java.lang.Throwable t)</PRE> | |
<DL> | |
<DD>Passes messages to Velocity's LogSystem at "DEBUG" level. | |
(it's the lowest available. sorry.) | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>trace</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="debug(java.lang.Object)"><!-- --></A><H3> | |
debug</H3> | |
<PRE> | |
public void <B>debug</B>(java.lang.Object message)</PRE> | |
<DL> | |
<DD>Passes messages to Velocity's LogSystem at "DEBUG" level. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>debug</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="debug(java.lang.Object, java.lang.Throwable)"><!-- --></A><H3> | |
debug</H3> | |
<PRE> | |
public void <B>debug</B>(java.lang.Object message, | |
java.lang.Throwable t)</PRE> | |
<DL> | |
<DD>Passes messages to Velocity's LogSystem at "DEBUG" level. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>debug</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="info(java.lang.Object)"><!-- --></A><H3> | |
info</H3> | |
<PRE> | |
public void <B>info</B>(java.lang.Object message)</PRE> | |
<DL> | |
<DD>Passes messages to Velocity's LogSystem at "INFO" level. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>info</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="info(java.lang.Object, java.lang.Throwable)"><!-- --></A><H3> | |
info</H3> | |
<PRE> | |
public void <B>info</B>(java.lang.Object message, | |
java.lang.Throwable t)</PRE> | |
<DL> | |
<DD>Passes messages to Velocity's LogSystem at "INFO" level. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>info</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="warn(java.lang.Object)"><!-- --></A><H3> | |
warn</H3> | |
<PRE> | |
public void <B>warn</B>(java.lang.Object message)</PRE> | |
<DL> | |
<DD>Passes messages to Velocity's LogSystem at "WARN" level. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>warn</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="warn(java.lang.Object, java.lang.Throwable)"><!-- --></A><H3> | |
warn</H3> | |
<PRE> | |
public void <B>warn</B>(java.lang.Object message, | |
java.lang.Throwable t)</PRE> | |
<DL> | |
<DD>Passes messages to Velocity's LogSystem at "WARN" level. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>warn</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="error(java.lang.Object)"><!-- --></A><H3> | |
error</H3> | |
<PRE> | |
public void <B>error</B>(java.lang.Object message)</PRE> | |
<DL> | |
<DD>Passes messages to Velocity's LogSystem at "ERROR" level. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>error</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="error(java.lang.Object, java.lang.Throwable)"><!-- --></A><H3> | |
error</H3> | |
<PRE> | |
public void <B>error</B>(java.lang.Object message, | |
java.lang.Throwable t)</PRE> | |
<DL> | |
<DD>Passes messages to Velocity's LogSystem at "ERROR" level. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>error</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="fatal(java.lang.Object)"><!-- --></A><H3> | |
fatal</H3> | |
<PRE> | |
public void <B>fatal</B>(java.lang.Object message)</PRE> | |
<DL> | |
<DD>Passes messages to Velocity's LogSystem at "ERROR" level. | |
(it's the highest available. sorry.) | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>fatal</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="fatal(java.lang.Object, java.lang.Throwable)"><!-- --></A><H3> | |
fatal</H3> | |
<PRE> | |
public void <B>fatal</B>(java.lang.Object message, | |
java.lang.Throwable t)</PRE> | |
<DL> | |
<DD>Passes messages to Velocity's LogSystem at "ERROR" level. | |
(it's the highest available. sorry.) | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>fatal</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isTraceEnabled()"><!-- --></A><H3> | |
isTraceEnabled</H3> | |
<PRE> | |
public boolean <B>isTraceEnabled</B>()</PRE> | |
<DL> | |
<DD>Always returns true since Velocity's LogSystem | |
doesn't provide this information. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>isTraceEnabled</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isDebugEnabled()"><!-- --></A><H3> | |
isDebugEnabled</H3> | |
<PRE> | |
public boolean <B>isDebugEnabled</B>()</PRE> | |
<DL> | |
<DD>Always returns true since Velocity's LogSystem | |
doesn't provide this information. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>isDebugEnabled</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isInfoEnabled()"><!-- --></A><H3> | |
isInfoEnabled</H3> | |
<PRE> | |
public boolean <B>isInfoEnabled</B>()</PRE> | |
<DL> | |
<DD>Always returns true since Velocity's LogSystem | |
doesn't provide this information. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>isInfoEnabled</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isWarnEnabled()"><!-- --></A><H3> | |
isWarnEnabled</H3> | |
<PRE> | |
public boolean <B>isWarnEnabled</B>()</PRE> | |
<DL> | |
<DD>Always returns true since Velocity's LogSystem | |
doesn't provide this information. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>isWarnEnabled</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isErrorEnabled()"><!-- --></A><H3> | |
isErrorEnabled</H3> | |
<PRE> | |
public boolean <B>isErrorEnabled</B>()</PRE> | |
<DL> | |
<DD>Always returns true since Velocity's LogSystem | |
doesn't provide this information. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>isErrorEnabled</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true</DL> | |
</DD> | |
</DL> | |
<HR> | |
<A NAME="isFatalEnabled()"><!-- --></A><H3> | |
isFatalEnabled</H3> | |
<PRE> | |
public boolean <B>isFatalEnabled</B>()</PRE> | |
<DL> | |
<DD>Always returns true since Velocity's LogSystem | |
doesn't provide this information. | |
<P> | |
<DD><DL> | |
<DT><B>Specified by:</B><DD><CODE>isFatalEnabled</CODE> in interface <CODE>org.apache.commons.logging.Log</CODE></DL> | |
</DD> | |
<DD><DL> | |
<DT><B>Returns:</B><DD>true</DL> | |
</DD> | |
</DL> | |
<!-- ========= END OF CLASS DATA ========= --> | |
<HR> | |
<!-- ======= START OF BOTTOM NAVBAR ====== --> | |
<A NAME="navbar_bottom"><!-- --></A> | |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> | |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> | |
<TR> | |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> | |
<A NAME="navbar_bottom_firstrow"><!-- --></A> | |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> | |
<TR ALIGN="center" VALIGN="top"> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> | |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> | |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> | |
</TR> | |
</TABLE> | |
</TD> | |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> | |
</EM> | |
</TD> | |
</TR> | |
<TR> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../../../org/apache/velocity/tools/generic/log/CommonsLogLogSystem.html" title="class in org.apache.velocity.tools.generic.log"><B>PREV CLASS</B></A> | |
NEXT CLASS</FONT></TD> | |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> | |
<A HREF="../../../../../../index.html?org/apache/velocity/tools/generic/log/LogSystemCommonsLog.html" target="_top"><B>FRAMES</B></A> | |
<A HREF="LogSystemCommonsLog.html" target="_top"><B>NO FRAMES</B></A> | |
<SCRIPT type="text/javascript"> | |
<!-- | |
if(window==top) { | |
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); | |
} | |
//--> | |
</SCRIPT> | |
<NOSCRIPT> | |
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> | |
</NOSCRIPT> | |
</FONT></TD> | |
</TR> | |
<TR> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> | |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> | |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> | |
</TR> | |
</TABLE> | |
<A NAME="skip-navbar_bottom"></A> | |
<!-- ======== END OF BOTTOM NAVBAR ======= --> | |
<HR> | |
Copyright (c) 2003-2007 Apache Software Foundation | |
</BODY> | |
</HTML> |