📄 logger.html
字号:
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> throwable)</CODE><BR> Log a event at specific priority with a certain message and throwable.</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/jivesoftware/util/log/Logger.html#setAdditivity(boolean)">setAdditivity</A></B>(boolean additivity)</CODE><BR> Make this logger additive, which means send all log events to parent loggers LogTargets regardless of whether or not the LogTargets have been overidden.</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/jivesoftware/util/log/Logger.html#setLogTargets(org.jivesoftware.util.log.LogTarget[])">setLogTargets</A></B>(<A HREF="../../../../org/jivesoftware/util/log/LogTarget.html" title="interface in org.jivesoftware.util.log">LogTarget</A>[] logTargets)</CODE><BR> Set the log targets for this logger.</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/jivesoftware/util/log/Logger.html#setPriority(org.jivesoftware.util.log.Priority)">setPriority</A></B>(<A HREF="../../../../org/jivesoftware/util/log/Priority.html" title="class in org.jivesoftware.util.log">Priority</A> priority)</CODE><BR> Set the priority for this logger.</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/jivesoftware/util/log/Logger.html#unsetLogTargets()">unsetLogTargets</A></B>()</CODE><BR> Unset the logtargets for this logger.</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/jivesoftware/util/log/Logger.html#unsetLogTargets(boolean)">unsetLogTargets</A></B>(boolean recursive)</CODE><BR> Unset the logtargets for this logger and all child loggers if recursive is set.</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/jivesoftware/util/log/Logger.html#unsetPriority()">unsetPriority</A></B>()</CODE><BR> Unset the priority of Logger.</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/jivesoftware/util/log/Logger.html#unsetPriority(boolean)">unsetPriority</A></B>(boolean recursive)</CODE><BR> Unset the priority of Logger.</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/jivesoftware/util/log/Logger.html#warn(java.lang.String)">warn</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message)</CODE><BR> Log a warn priority event.</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/jivesoftware/util/log/Logger.html#warn(java.lang.String, java.lang.Throwable)">warn</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> throwable)</CODE><BR> Log a warn priority event.</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.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></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="CATEGORY_SEPARATOR"><!-- --></A><H3>CATEGORY_SEPARATOR</H3><PRE>public static final char <B>CATEGORY_SEPARATOR</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.jivesoftware.util.log.Logger.CATEGORY_SEPARATOR">Constant Field Values</A></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="isDebugEnabled()"><!-- --></A><H3>isDebugEnabled</H3><PRE>public final boolean <B>isDebugEnabled</B>()</PRE><DL><DD>Determine if messages of priority DEBUG will be logged.<P><DD><DL><DT><B>Returns:</B><DD>true if DEBUG messages will be logged</DL></DD></DL><HR><A NAME="debug(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>debug</H3><PRE>public final void <B>debug</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> throwable)</PRE><DL><DD>Log a debug priority event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message<DD><CODE>throwable</CODE> - the throwable</DL></DD></DL><HR><A NAME="debug(java.lang.String)"><!-- --></A><H3>debug</H3><PRE>public final void <B>debug</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message)</PRE><DL><DD>Log a debug priority event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message</DL></DD></DL><HR><A NAME="isInfoEnabled()"><!-- --></A><H3>isInfoEnabled</H3><PRE>public final boolean <B>isInfoEnabled</B>()</PRE><DL><DD>Determine if messages of priority INFO will be logged.<P><DD><DL><DT><B>Returns:</B><DD>true if INFO messages will be logged</DL></DD></DL><HR><A NAME="info(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>info</H3><PRE>public final void <B>info</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> throwable)</PRE><DL><DD>Log a info priority event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message</DL></DD></DL><HR><A NAME="info(java.lang.String)"><!-- --></A><H3>info</H3><PRE>public final void <B>info</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message)</PRE><DL><DD>Log a info priority event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message</DL></DD></DL><HR><A NAME="isWarnEnabled()"><!-- --></A><H3>isWarnEnabled</H3><PRE>public final boolean <B>isWarnEnabled</B>()</PRE><DL><DD>Determine if messages of priority WARN will be logged.<P><DD><DL><DT><B>Returns:</B><DD>true if WARN messages will be logged</DL></DD></DL><HR><A NAME="warn(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>warn</H3><PRE>public final void <B>warn</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> throwable)</PRE><DL><DD>Log a warn priority event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message<DD><CODE>throwable</CODE> - the throwable</DL></DD></DL><HR><A NAME="warn(java.lang.String)"><!-- --></A><H3>warn</H3><PRE>public final void <B>warn</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message)</PRE><DL><DD>Log a warn priority event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message</DL></DD></DL><HR><A NAME="isErrorEnabled()"><!-- --></A><H3>isErrorEnabled</H3><PRE>public final boolean <B>isErrorEnabled</B>()</PRE><DL><DD>Determine if messages of priority ERROR will be logged.<P><DD><DL><DT><B>Returns:</B><DD>true if ERROR messages will be logged</DL></DD></DL><HR><A NAME="error(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>error</H3><PRE>public final void <B>error</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> throwable)</PRE><DL><DD>Log a error priority event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message<DD><CODE>throwable</CODE> - the throwable</DL></DD></DL><HR><A NAME="error(java.lang.String)"><!-- --></A><H3>error</H3><PRE>public final void <B>error</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message)</PRE><DL><DD>Log a error priority event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message</DL></DD></DL><HR><A NAME="isFatalErrorEnabled()"><!-- --></A><H3>isFatalErrorEnabled</H3><PRE>public final boolean <B>isFatalErrorEnabled</B>()</PRE><DL><DD>Determine if messages of priority FATAL_ERROR will be logged.<P><DD><DL><DT><B>Returns:</B><DD>true if FATAL_ERROR messages will be logged</DL></DD></DL><HR><A NAME="fatalError(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>fatalError</H3><PRE>public final void <B>fatalError</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> throwable)</PRE><DL><DD>Log a fatalError priority event.<P><DD><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -