📄 logger.html
字号:
<DT><B>Parameters:</B><DD><CODE>message</CODE> - the message<DD><CODE>throwable</CODE> - the throwable</DL></DD></DL><HR><A NAME="fatalError(java.lang.String)"><!-- --></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)</PRE><DL><DD>Log a fatalError priority event.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message</DL></DD></DL><HR><A NAME="setAdditivity(boolean)"><!-- --></A><H3>setAdditivity</H3><PRE>public final void <B>setAdditivity</B>(boolean additivity)</PRE><DL><DD>Make this logger additive, which means send all log events to parent loggers LogTargets regardless of whether or not the LogTargets have been overidden. <p/> This is derived from Log4js notion of Additivity.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>additivity</CODE> - true to make logger additive, false otherwise</DL></DD></DL><HR><A NAME="isPriorityEnabled(org.jivesoftware.util.log.Priority)"><!-- --></A><H3>isPriorityEnabled</H3><PRE>public final boolean <B>isPriorityEnabled</B>(<A HREF="../../../../org/jivesoftware/util/log/Priority.html" title="class in org.jivesoftware.util.log">Priority</A> priority)</PRE><DL><DD>Determine if messages of priority will be logged.<P><DD><DL><DT><B>Returns:</B><DD>true if messages will be logged</DL></DD></DL><HR><A NAME="log(org.jivesoftware.util.log.Priority, java.lang.String, java.lang.Throwable)"><!-- --></A><H3>log</H3><PRE>public final void <B>log</B>(<A HREF="../../../../org/jivesoftware/util/log/Priority.html" title="class in org.jivesoftware.util.log">Priority</A> priority, <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 event at specific priority with a certain message and throwable.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message<DD><CODE>priority</CODE> - the priority<DD><CODE>throwable</CODE> - the throwable</DL></DD></DL><HR><A NAME="log(org.jivesoftware.util.log.Priority, java.lang.String)"><!-- --></A><H3>log</H3><PRE>public final void <B>log</B>(<A HREF="../../../../org/jivesoftware/util/log/Priority.html" title="class in org.jivesoftware.util.log">Priority</A> priority, <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 event at specific priority with a certain message.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message<DD><CODE>priority</CODE> - the priority</DL></DD></DL><HR><A NAME="setPriority(org.jivesoftware.util.log.Priority)"><!-- --></A><H3>setPriority</H3><PRE>public void <B>setPriority</B>(<A HREF="../../../../org/jivesoftware/util/log/Priority.html" title="class in org.jivesoftware.util.log">Priority</A> priority)</PRE><DL><DD>Set the priority for this logger.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>priority</CODE> - the priority</DL></DD></DL><HR><A NAME="unsetPriority()"><!-- --></A><H3>unsetPriority</H3><PRE>public void <B>unsetPriority</B>()</PRE><DL><DD>Unset the priority of Logger. (Thus it will use it's parent's priority or DEBUG if no parent.<P><DD><DL></DL></DD></DL><HR><A NAME="unsetPriority(boolean)"><!-- --></A><H3>unsetPriority</H3><PRE>public void <B>unsetPriority</B>(boolean recursive)</PRE><DL><DD>Unset the priority of Logger. (Thus it will use it's parent's priority or DEBUG if no parent. If recursive is true unset priorities of all child loggers.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>recursive</CODE> - true to unset priority of all child loggers</DL></DD></DL><HR><A NAME="setLogTargets(org.jivesoftware.util.log.LogTarget[])"><!-- --></A><H3>setLogTargets</H3><PRE>public void <B>setLogTargets</B>(<A HREF="../../../../org/jivesoftware/util/log/LogTarget.html" title="interface in org.jivesoftware.util.log">LogTarget</A>[] logTargets)</PRE><DL><DD>Set the log targets for this logger.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>logTargets</CODE> - the Log Targets</DL></DD></DL><HR><A NAME="unsetLogTargets()"><!-- --></A><H3>unsetLogTargets</H3><PRE>public void <B>unsetLogTargets</B>()</PRE><DL><DD>Unset the logtargets for this logger. This logger (and thus all child loggers who don't specify logtargets) will inherit from the parents LogTargets.<P><DD><DL></DL></DD></DL><HR><A NAME="unsetLogTargets(boolean)"><!-- --></A><H3>unsetLogTargets</H3><PRE>public void <B>unsetLogTargets</B>(boolean recursive)</PRE><DL><DD>Unset the logtargets for this logger and all child loggers if recursive is set. The loggers unset (and all child loggers who don't specify logtargets) will inherit from the parents LogTargets.<P><DD><DL></DL></DD></DL><HR><A NAME="getChildren()"><!-- --></A><H3>getChildren</H3><PRE>public <A HREF="../../../../org/jivesoftware/util/log/Logger.html" title="class in org.jivesoftware.util.log">Logger</A>[] <B>getChildren</B>()</PRE><DL><DD>Get all the child Loggers of current logger.<P><DD><DL><DT><B>Returns:</B><DD>the child loggers</DL></DD></DL><HR><A NAME="getChildLogger(java.lang.String)"><!-- --></A><H3>getChildLogger</H3><PRE>public <A HREF="../../../../org/jivesoftware/util/log/Logger.html" title="class in org.jivesoftware.util.log">Logger</A> <B>getChildLogger</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> subCategory) throws <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD>Create a new child logger. The category of child logger is [current-category].subcategory<P><DD><DL><DT><B>Parameters:</B><DD><CODE>subCategory</CODE> - the subcategory of this logger<DT><B>Returns:</B><DD>the new logger<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if subCategory has an empty element name</DL></DD></DL><HR><A NAME="getPriority()"><!-- --></A><H3>getPriority</H3><PRE>public final <A HREF="../../../../org/jivesoftware/util/log/Priority.html" title="class in org.jivesoftware.util.log">Priority</A> <B>getPriority</B>()</PRE><DL><DD><B>Deprecated.</B> <I>This method violates Inversion of Control principle. It will downgraded to protected access in a future release. When user needs to check priority it is advised that they use the is[Priority]Enabled() functions.</I><P><DD>Retrieve priority associated with Logger.<P><DD><DL><DT><B>Returns:</B><DD>the loggers priority</DL></DD></DL><HR><A NAME="getCategory()"><!-- --></A><H3>getCategory</H3><PRE>public final <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> <B>getCategory</B>()</PRE><DL><DD><B>Deprecated.</B> <I>This method violates Inversion of Control principle. If you are relying on its presence then there may be something wrong with the design of your system</I><P><DD>Retrieve category associated with logger.<P><DD><DL><DT><B>Returns:</B><DD>the Category</DL></DD></DL><HR><A NAME="getLogTargets()"><!-- --></A><H3>getLogTargets</H3><PRE>public <A HREF="../../../../org/jivesoftware/util/log/LogTarget.html" title="interface in org.jivesoftware.util.log">LogTarget</A>[] <B>getLogTargets</B>()</PRE><DL><DD>Get a copy of log targets for this logger.<P><DD><DL><DT><B>Returns:</B><DD>the child loggers</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><b>Openfire 3.6.0a Javadoc</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../org/jivesoftware/util/log/LogEvent.html" title="class in org.jivesoftware.util.log"><B>PREV CLASS</B></A> <A HREF="../../../../org/jivesoftware/util/log/LogTarget.html" title="interface in org.jivesoftware.util.log"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?org/jivesoftware/util/log/Logger.html" target="_top"><B>FRAMES</B></A> <A HREF="Logger.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> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2003-2008 Jive Software.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -