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

📄 turbineloggingservice.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="TurbineLoggingService()"><!-- --></A><H3>TurbineLoggingService</H3><PRE>public <B>TurbineLoggingService</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="init()"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>()          throws <A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></PRE><DL><DD>Load all configured components and initialize them. This is a zero parameter variant which queries the Turbine Servlet for its config.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html#init()">init</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html">Initable</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html#init()">init</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html">TurbineBaseService</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></CODE> - Something went wrong in the init         stage</DL></DD></DL><HR><A NAME="init(javax.servlet.ServletConfig)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(javax.servlet.ServletConfig&nbsp;config)          throws <A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></PRE><DL><DD>Inits the service using servlet parameters to obtain path to the configuration file. Change relatives paths.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html#init(javax.servlet.ServletConfig)">init</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html">TurbineBaseService</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>config</CODE> - The ServletConfiguration from Turbine<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></CODE> - Something went wrong when starting up.</DL></DD></DL><HR><A NAME="getLoggingConfig()"><!-- --></A><H3>getLoggingConfig</H3><PRE>public <A HREF="../../../../../org/apache/turbine/services/logging/LoggingConfig.html">LoggingConfig</A> <B>getLoggingConfig</B>()                               throws <A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></PRE><DL><DD>Creates a new LoggingConfig object. By default, this is a PropertiesLoggingConfig object. You can override this by changing your TurbineResources.properties file to something else. Prop: services.TurbineLoggingService.loggingConfig FIXME: Not built for speed. :-(<DD><DL></DL></DD></DL><HR><A NAME="getResources()"><!-- --></A><H3>getResources</H3><PRE>public <A HREF="../../../../../org/apache/turbine/services/resources/ResourceService.html">ResourceService</A> <B>getResources</B>()</PRE><DL><DD>This gets the ResourceService associated to this Service<DD><DL></DL></DD></DL><HR><A NAME="loadLogger(org.apache.turbine.services.logging.LoggingConfig)"><!-- --></A><H3>loadLogger</H3><PRE>protected void <B>loadLogger</B>(<A HREF="../../../../../org/apache/turbine/services/logging/LoggingConfig.html">LoggingConfig</A>&nbsp;loggingConfig)                   throws <A HREF="../../../../../org/apache/turbine/services/InitializationException.html">InitializationException</A></PRE><DL><DD>Creates instances of the logger, configures it, and adds it to the hashTable. It skips loggers if there where errors.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>loggerDescription</CODE> - xml-Node defining the logger</DL></DD></DL><HR><A NAME="shutdown()"><!-- --></A><H3>shutdown</H3><PRE>public void <B>shutdown</B>()</PRE><DL><DD>Shutdowns all loggers. After shutdown servlet logger is still available using the servlet log method<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html#shutdown()">shutdown</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/Initable.html">Initable</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html#shutdown()">shutdown</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/services/TurbineBaseService.html">TurbineBaseService</A></CODE></DL></DD></DL><HR><A NAME="getLogger()"><!-- --></A><H3>getLogger</H3><PRE>public final <A HREF="../../../../../org/apache/turbine/services/logging/Logger.html">Logger</A> <B>getLogger</B>()</PRE><DL><DD>This method returns default logger for Turbine System<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html#getLogger()">getLogger</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html">LoggingService</A></CODE></DL></DD></DL><HR><A NAME="getLogger(java.lang.String)"><!-- --></A><H3>getLogger</H3><PRE>public <A HREF="../../../../../org/apache/turbine/services/logging/Logger.html">Logger</A> <B>getLogger</B>(java.lang.String&nbsp;logName)</PRE><DL><DD>This method returns logger with given name.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html#getLogger(java.lang.String)">getLogger</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html">LoggingService</A></CODE></DL></DD></DL><HR><A NAME="setLogLevel(int)"><!-- --></A><H3>setLogLevel</H3><PRE>public void <B>setLogLevel</B>(int&nbsp;level)</PRE><DL><DD>This method sets the log level of the default logger.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html#setLogLevel(int)">setLogLevel</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html">LoggingService</A></CODE></DL></DD></DL><HR><A NAME="setLogLevel(java.lang.String, int)"><!-- --></A><H3>setLogLevel</H3><PRE>public void <B>setLogLevel</B>(java.lang.String&nbsp;logName,                        int&nbsp;level)</PRE><DL><DD>This method sets the log level of the logger of given name.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html#setLogLevel(java.lang.String, int)">setLogLevel</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html">LoggingService</A></CODE></DL></DD></DL><HR><A NAME="setFormat(java.lang.String)"><!-- --></A><H3>setFormat</H3><PRE>public void <B>setFormat</B>(java.lang.String&nbsp;format)</PRE><DL><DD>This method sets format style of the default logger<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html#setFormat(java.lang.String)">setFormat</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html">LoggingService</A></CODE></DL></DD></DL><HR><A NAME="setFormat(java.lang.String, java.lang.String)"><!-- --></A><H3>setFormat</H3><PRE>public void <B>setFormat</B>(java.lang.String&nbsp;logName,                      java.lang.String&nbsp;format)</PRE><DL><DD>This method sets format style of the given logger.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html#setFormat(java.lang.String, java.lang.String)">setFormat</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html">LoggingService</A></CODE></DL></DD></DL><HR><A NAME="debug(java.lang.String)"><!-- --></A><H3>debug</H3><PRE>public void <B>debug</B>(java.lang.String&nbsp;message)</PRE><DL><DD>This is a log method with logLevel == DEBUG, printing is done by the default logger<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html#debug(java.lang.String)">debug</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html">LoggingService</A></CODE></DL></DD></DL><HR><A NAME="debug(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>debug</H3><PRE>public void <B>debug</B>(java.lang.String&nbsp;message,                  java.lang.Throwable&nbsp;t)</PRE><DL><DD>This is a log method with logLevel == DEBUG, printing is done by the default logger<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html#debug(java.lang.String, java.lang.Throwable)">debug</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html">LoggingService</A></CODE></DL></DD></DL><HR><A NAME="debug(java.lang.String, java.lang.String, java.lang.Throwable)"><!-- --></A><H3>debug</H3><PRE>public void <B>debug</B>(java.lang.String&nbsp;logName,                  java.lang.String&nbsp;message,                  java.lang.Throwable&nbsp;t)</PRE><DL><DD>This is a log method with logLevel == DEBUG, printing is done by the given logger<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html#debug(java.lang.String, java.lang.String, java.lang.Throwable)">debug</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html">LoggingService</A></CODE></DL></DD></DL><HR><A NAME="debug(java.lang.String, java.lang.String)"><!-- --></A><H3>debug</H3><PRE>public void <B>debug</B>(java.lang.String&nbsp;logName,                  java.lang.String&nbsp;message)</PRE><DL><DD>This is a log method with logLevel == DEBUG, printing is done by the given logger<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html#debug(java.lang.String, java.lang.String)">debug</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html">LoggingService</A></CODE></DL></DD></DL><HR><A NAME="debug(java.lang.String, org.apache.turbine.util.RunData)"><!-- --></A><H3>debug</H3><PRE>public void <B>debug</B>(java.lang.String&nbsp;message,                  <A HREF="../../../../../org/apache/turbine/util/RunData.html">RunData</A>&nbsp;data)</PRE><DL><DD>This is a log method with logLevel == DEBUG, printing is done by the default logger<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html#debug(java.lang.String, org.apache.turbine.util.RunData)">debug</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/services/logging/LoggingService.html">LoggingService</A></CODE></DL>

⌨️ 快捷键说明

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