⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 turbineloggingservice.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#init(javax.servlet.ServletConfig)">init</A></B>(javax.servlet.ServletConfig&nbsp;config)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Inits the service using servlet parameters to obtain path to the configuration file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#loadLogger(org.apache.turbine.services.logging.LoggingConfig)">loadLogger</A></B>(<A HREF="../../../../../org/apache/turbine/services/logging/LoggingConfig.html">LoggingConfig</A>&nbsp;loggingConfig)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates instances of the logger, configures it, and adds it to the hashTable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#setFormat(java.lang.String)">setFormat</A></B>(java.lang.String&nbsp;format)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method sets format style of the default logger</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#setFormat(java.lang.String, java.lang.String)">setFormat</A></B>(java.lang.String&nbsp;logName,          java.lang.String&nbsp;format)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method sets format style of the given logger.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#setLogLevel(int)">setLogLevel</A></B>(int&nbsp;level)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method sets the log level of the default logger.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#setLogLevel(java.lang.String, int)">setLogLevel</A></B>(java.lang.String&nbsp;logName,            int&nbsp;level)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method sets the log level of the logger of given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#shutdown()">shutdown</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shutdowns all loggers.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#warn(java.lang.String)">warn</A></B>(java.lang.String&nbsp;message)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is a log method with logLevel == WARN, printing is done by the default logger</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#warn(java.lang.String, org.apache.turbine.util.RunData)">warn</A></B>(java.lang.String&nbsp;message,     <A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is a log method with logLevel == WARN,printing is done by the default logger</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#warn(java.lang.String, org.apache.turbine.util.RunData, java.lang.Throwable)">warn</A></B>(java.lang.String&nbsp;message,     <A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data,     java.lang.Throwable&nbsp;t)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is a log method with logLevel == WARN, printing is done by the default logger</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#warn(java.lang.String, java.lang.String)">warn</A></B>(java.lang.String&nbsp;logName,     java.lang.String&nbsp;message)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is a log method with logLevel == WARN, printing is done by the given logger</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#warn(java.lang.String, java.lang.String, org.apache.turbine.util.RunData)">warn</A></B>(java.lang.String&nbsp;logName,     java.lang.String&nbsp;message,     <A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is a log method with logLevel == WARN, printing is done by the given logger</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#warn(java.lang.String, java.lang.String, org.apache.turbine.util.RunData, java.lang.Throwable)">warn</A></B>(java.lang.String&nbsp;logName,     java.lang.String&nbsp;message,     <A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data,     java.lang.Throwable&nbsp;t)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is a log method with logLevel == WARN, printing is done by the given logger</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#warn(java.lang.String, java.lang.String, java.lang.Throwable)">warn</A></B>(java.lang.String&nbsp;logName,     java.lang.String&nbsp;message,     java.lang.Throwable&nbsp;t)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is a log method with logLevel == WARN, printing is done by the given logger</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/services/logging/TurbineLoggingService.html#warn(java.lang.String, java.lang.Throwable)">warn</A></B>(java.lang.String&nbsp;message,     java.lang.Throwable&nbsp;t)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is a log method with logLevel == WARN, printing is done by the default logger</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.turbine.services.TurbineBaseService"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.apache.turbine.services.<A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html">TurbineBaseService</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html#init(java.lang.Object)">init</A>, <A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html#init(org.apache.turbine.util.RunData)">init</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.turbine.services.BaseService"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.apache.turbine.services.<A HREF="../../../../../org/apache/turbine/services/BaseService.html">BaseService</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/services/BaseService.html#getConfiguration()">getConfiguration</A>, <A HREF="../../../../../org/apache/turbine/services/BaseService.html#getName()">getName</A>, <A HREF="../../../../../org/apache/turbine/services/BaseService.html#getProperties()">getProperties</A>, <A HREF="../../../../../org/apache/turbine/services/BaseService.html#getServiceBroker()">getServiceBroker</A>, <A HREF="../../../../../org/apache/turbine/services/BaseService.html#setName(java.lang.String)">setName</A>, <A HREF="../../../../../org/apache/turbine/services/BaseService.html#setServiceBroker(org.apache.turbine.services.ServiceBroker)">setServiceBroker</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.turbine.services.BaseInitable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.apache.turbine.services.<A HREF="../../../../../org/apache/turbine/services/BaseInitable.html">BaseInitable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/services/BaseInitable.html#getInit()">getInit</A>, <A HREF="../../../../../org/apache/turbine/services/BaseInitable.html#getInitableBroker()">getInitableBroker</A>, <A HREF="../../../../../org/apache/turbine/services/BaseInitable.html#setInit(boolean)">setInit</A>, <A HREF="../../../../../org/apache/turbine/services/BaseInitable.html#setInitableBroker(org.apache.turbine.services.InitableBroker)">setInitableBroker</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.turbine.services.Service"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface org.apache.turbine.services.<A HREF="../../../../../org/apache/turbine/services/Service.html">Service</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/services/Service.html#getConfiguration()">getConfiguration</A>, <A HREF="../../../../../org/apache/turbine/services/Service.html#getName()">getName</A>, <A HREF="../../../../../org/apache/turbine/services/Service.html#getProperties()">getProperties</A>, <A HREF="../../../../../org/apache/turbine/services/Service.html#setName(java.lang.String)">setName</A>, <A HREF="../../../../../org/apache/turbine/services/Service.html#setServiceBroker(org.apache.turbine.services.ServiceBroker)">setServiceBroker</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.turbine.services.Initable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface org.apache.turbine.services.<A HREF="../../../../../org/apache/turbine/services/Initable.html">Initable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html#getInit()">getInit</A>, <A HREF="../../../../../org/apache/turbine/services/Initable.html#init(java.lang.Object)">init</A>, <A HREF="../../../../../org/apache/turbine/services/Initable.html#setInitableBroker(org.apache.turbine.services.InitableBroker)">setInitableBroker</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="loggersTable"><!-- --></A><H3>loggersTable</H3><PRE>protected java.util.Hashtable <B>loggersTable</B></PRE><DL><DD>loggers repository</DL><HR><A NAME="defaultLogger"><!-- --></A><H3>defaultLogger</H3><PRE>protected <A HREF="../../../../../org/apache/turbine/services/logging/Logger.html">Logger</A> <B>defaultLogger</B></PRE><DL><DD>logger for methods without target</DL><HR><A NAME="simpleLogger"><!-- --></A><H3>simpleLogger</H3><PRE>protected <A HREF="../../../../../org/apache/turbine/services/logging/Logger.html">Logger</A> <B>simpleLogger</B></PRE><DL><DD>bootstrap and shutdown logger using context.log</DL><HR><A NAME="context"><!-- --></A><H3>context</H3><PRE>protected javax.servlet.ServletContext <B>context</B></PRE><DL><DD>context for resolving paths and servlet logging</DL><!-- ========= CONSTRUCTOR DETAIL ======== -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -