PageRenderTime 65ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 1ms

/lib/apache-log4j/site/apidocs/org/apache/log4j/Category.html

https://bitbucket.org/arkban/somersault
HTML | 1951 lines | 1734 code | 193 blank | 24 comment | 0 complexity | 8c0903ea5bec27968fbc4cc2bcf8ce9d MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause, Apache-2.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_16) -->
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <TITLE>
  8. Category (Apache Log4j 1.2.16 API)
  9. </TITLE>
  10. <META NAME="date" CONTENT="2010-03-30">
  11. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
  12. <SCRIPT type="text/javascript">
  13. function windowTitle()
  14. {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="Category (Apache Log4j 1.2.16 API)";
  17. }
  18. }
  19. </SCRIPT>
  20. <NOSCRIPT>
  21. </NOSCRIPT>
  22. </HEAD>
  23. <BODY BGCOLOR="white" onload="windowTitle();">
  24. <HR>
  25. <!-- ========= START OF TOP NAVBAR ======= -->
  26. <A NAME="navbar_top"><!-- --></A>
  27. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  28. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  29. <TR>
  30. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  31. <A NAME="navbar_top_firstrow"><!-- --></A>
  32. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  33. <TR ALIGN="center" VALIGN="top">
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Category.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  39. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  40. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  41. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  42. </TR>
  43. </TABLE>
  44. </TD>
  45. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  46. </EM>
  47. </TD>
  48. </TR>
  49. <TR>
  50. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  51. &nbsp;<A HREF="../../../org/apache/log4j/BasicConfigurator.html" title="class in org.apache.log4j"><B>PREV CLASS</B></A>&nbsp;
  52. &nbsp;<A HREF="../../../org/apache/log4j/ConsoleAppender.html" title="class in org.apache.log4j"><B>NEXT CLASS</B></A></FONT></TD>
  53. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  54. <A HREF="../../../index.html?org/apache/log4j/Category.html" target="_top"><B>FRAMES</B></A> &nbsp;
  55. &nbsp;<A HREF="Category.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  56. &nbsp;<SCRIPT type="text/javascript">
  57. <!--
  58. if(window==top) {
  59. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  60. }
  61. //-->
  62. </SCRIPT>
  63. <NOSCRIPT>
  64. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  65. </NOSCRIPT>
  66. </FONT></TD>
  67. </TR>
  68. <TR>
  69. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  70. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  71. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  72. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  73. </TR>
  74. </TABLE>
  75. <A NAME="skip-navbar_top"></A>
  76. <!-- ========= END OF TOP NAVBAR ========= -->
  77. <HR>
  78. <!-- ======== START OF CLASS DATA ======== -->
  79. <H2>
  80. <FONT SIZE="-1">
  81. org.apache.log4j</FONT>
  82. <BR>
  83. Class Category</H2>
  84. <PRE>
  85. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  86. <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.apache.log4j.Category</B>
  87. </PRE>
  88. <DL>
  89. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></DD>
  90. </DL>
  91. <DL>
  92. <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../org/apache/log4j/Logger.html" title="class in org.apache.log4j">Logger</A></DD>
  93. </DL>
  94. <HR>
  95. <DL>
  96. <DT><PRE>public class <B>Category</B><DT>extends <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></DL>
  97. </PRE>
  98. <P>
  99. <font color="#AA2222"><b>This class has been deprecated and
  100. replaced by the <A HREF="../../../org/apache/log4j/Logger.html" title="class in org.apache.log4j"><CODE>Logger</CODE></A> <em>subclass</em></b></font>. It
  101. will be kept around to preserve backward compatibility until mid
  102. 2003.
  103. <p><code>Logger</code> is a subclass of Category, i.e. it extends
  104. Category. In other words, a logger <em>is</em> a category. Thus,
  105. all operations that can be performed on a category can be
  106. performed on a logger. Internally, whenever log4j is asked to
  107. produce a Category object, it will instead produce a Logger
  108. object. Log4j 1.2 will <em>never</em> produce Category objects but
  109. only <code>Logger</code> instances. In order to preserve backward
  110. compatibility, methods that previously accepted category objects
  111. still continue to accept category objects.
  112. <p>For example, the following are all legal and will work as
  113. expected.
  114. <pre>
  115. &nbsp;&nbsp;&nbsp;// Deprecated form:
  116. &nbsp;&nbsp;&nbsp;Category cat = Category.getInstance("foo.bar")
  117. &nbsp;&nbsp;&nbsp;// Preferred form for retrieving loggers:
  118. &nbsp;&nbsp;&nbsp;Logger logger = Logger.getLogger("foo.bar")
  119. </pre>
  120. <p>The first form is deprecated and should be avoided.
  121. <p><b>There is absolutely no need for new client code to use or
  122. refer to the <code>Category</code> class.</b> Whenever possible,
  123. please avoid referring to it or using it.
  124. <p>See the <a href="../../../../manual.html">short manual</a> for an
  125. introduction on this class.
  126. <p>
  127. See the document entitled <a href="http://www.qos.ch/logging/preparingFor13.html">preparing
  128. for log4j 1.3</a> for a more detailed discussion.
  129. <P>
  130. <P>
  131. <DL>
  132. <DT><B>Author:</B></DT>
  133. <DD>Ceki G&uuml;lc&uuml;, Anders Kristensen</DD>
  134. </DL>
  135. <HR>
  136. <P>
  137. <!-- =========== FIELD SUMMARY =========== -->
  138. <A NAME="field_summary"><!-- --></A>
  139. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  140. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  141. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  142. <B>Field Summary</B></FONT></TH>
  143. </TR>
  144. <TR BGCOLOR="white" CLASS="TableRowColor">
  145. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  146. <CODE>protected &nbsp;boolean</CODE></FONT></TD>
  147. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#additive">additive</A></B></CODE>
  148. <BR>
  149. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Additivity is set to true by default, that is children inherit
  150. the appenders of their ancestors by default.</TD>
  151. </TR>
  152. <TR BGCOLOR="white" CLASS="TableRowColor">
  153. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  154. <CODE>protected &nbsp;<A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j">Level</A></CODE></FONT></TD>
  155. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#level">level</A></B></CODE>
  156. <BR>
  157. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The assigned level of this category.</TD>
  158. </TR>
  159. <TR BGCOLOR="white" CLASS="TableRowColor">
  160. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  161. <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  162. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#name">name</A></B></CODE>
  163. <BR>
  164. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The name of this category.</TD>
  165. </TR>
  166. <TR BGCOLOR="white" CLASS="TableRowColor">
  167. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  168. <CODE>protected &nbsp;<A HREF="../../../org/apache/log4j/Category.html" title="class in org.apache.log4j">Category</A></CODE></FONT></TD>
  169. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#parent">parent</A></B></CODE>
  170. <BR>
  171. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The parent of this category.</TD>
  172. </TR>
  173. <TR BGCOLOR="white" CLASS="TableRowColor">
  174. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  175. <CODE>protected &nbsp;<A HREF="../../../org/apache/log4j/spi/LoggerRepository.html" title="interface in org.apache.log4j.spi">LoggerRepository</A></CODE></FONT></TD>
  176. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#repository">repository</A></B></CODE>
  177. <BR>
  178. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  179. </TR>
  180. <TR BGCOLOR="white" CLASS="TableRowColor">
  181. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  182. <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</A></CODE></FONT></TD>
  183. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#resourceBundle">resourceBundle</A></B></CODE>
  184. <BR>
  185. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  186. </TR>
  187. </TABLE>
  188. &nbsp;
  189. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  190. <A NAME="constructor_summary"><!-- --></A>
  191. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  192. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  193. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  194. <B>Constructor Summary</B></FONT></TH>
  195. </TR>
  196. <TR BGCOLOR="white" CLASS="TableRowColor">
  197. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  198. <CODE>protected </CODE></FONT></TD>
  199. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#Category(java.lang.String)">Category</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
  200. <BR>
  201. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This constructor created a new <code>Category</code> instance and
  202. sets its name.</TD>
  203. </TR>
  204. </TABLE>
  205. &nbsp;
  206. <!-- ========== METHOD SUMMARY =========== -->
  207. <A NAME="method_summary"><!-- --></A>
  208. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  209. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  210. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  211. <B>Method Summary</B></FONT></TH>
  212. </TR>
  213. <TR BGCOLOR="white" CLASS="TableRowColor">
  214. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  215. <CODE>&nbsp;void</CODE></FONT></TD>
  216. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#addAppender(org.apache.log4j.Appender)">addAppender</A></B>(<A HREF="../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A>&nbsp;newAppender)</CODE>
  217. <BR>
  218. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add <code>newAppender</code> to the list of appenders of this
  219. Category instance.</TD>
  220. </TR>
  221. <TR BGCOLOR="white" CLASS="TableRowColor">
  222. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  223. <CODE>&nbsp;void</CODE></FONT></TD>
  224. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#assertLog(boolean, java.lang.String)">assertLog</A></B>(boolean&nbsp;assertion,
  225. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;msg)</CODE>
  226. <BR>
  227. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If <code>assertion</code> parameter is <code>false</code>, then
  228. logs <code>msg</code> as an <A HREF="../../../org/apache/log4j/Category.html#error(java.lang.Object)"><CODE>error</CODE></A> statement.</TD>
  229. </TR>
  230. <TR BGCOLOR="white" CLASS="TableRowColor">
  231. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  232. <CODE>&nbsp;void</CODE></FONT></TD>
  233. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#callAppenders(org.apache.log4j.spi.LoggingEvent)">callAppenders</A></B>(<A HREF="../../../org/apache/log4j/spi/LoggingEvent.html" title="class in org.apache.log4j.spi">LoggingEvent</A>&nbsp;event)</CODE>
  234. <BR>
  235. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call the appenders in the hierrachy starting at
  236. <code>this</code>.</TD>
  237. </TR>
  238. <TR BGCOLOR="white" CLASS="TableRowColor">
  239. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  240. <CODE>&nbsp;void</CODE></FONT></TD>
  241. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#debug(java.lang.Object)">debug</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message)</CODE>
  242. <BR>
  243. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log a message object with the <A HREF="../../../org/apache/log4j/Level.html#DEBUG"><CODE>DEBUG</CODE></A> level.</TD>
  244. </TR>
  245. <TR BGCOLOR="white" CLASS="TableRowColor">
  246. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  247. <CODE>&nbsp;void</CODE></FONT></TD>
  248. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#debug(java.lang.Object, java.lang.Throwable)">debug</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  249. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</CODE>
  250. <BR>
  251. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log a message object with the <code>DEBUG</code> level including
  252. the stack trace of the <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> <code>t</code> passed as
  253. parameter.</TD>
  254. </TR>
  255. <TR BGCOLOR="white" CLASS="TableRowColor">
  256. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  257. <CODE>&nbsp;void</CODE></FONT></TD>
  258. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#error(java.lang.Object)">error</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message)</CODE>
  259. <BR>
  260. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log a message object with the <A HREF="../../../org/apache/log4j/Level.html#ERROR"><CODE>ERROR</CODE></A> Level.</TD>
  261. </TR>
  262. <TR BGCOLOR="white" CLASS="TableRowColor">
  263. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  264. <CODE>&nbsp;void</CODE></FONT></TD>
  265. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#error(java.lang.Object, java.lang.Throwable)">error</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  266. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</CODE>
  267. <BR>
  268. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log a message object with the <code>ERROR</code> level including
  269. the stack trace of the <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> <code>t</code> passed as
  270. parameter.</TD>
  271. </TR>
  272. <TR BGCOLOR="white" CLASS="TableRowColor">
  273. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  274. <CODE>static&nbsp;<A HREF="../../../org/apache/log4j/Logger.html" title="class in org.apache.log4j">Logger</A></CODE></FONT></TD>
  275. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#exists(java.lang.String)">exists</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
  276. <BR>
  277. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/LogManager.html#exists(java.lang.String)"><CODE>LogManager.exists(java.lang.String)</CODE></A> instead.</I></TD>
  278. </TR>
  279. <TR BGCOLOR="white" CLASS="TableRowColor">
  280. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  281. <CODE>&nbsp;void</CODE></FONT></TD>
  282. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#fatal(java.lang.Object)">fatal</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message)</CODE>
  283. <BR>
  284. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log a message object with the <A HREF="../../../org/apache/log4j/Level.html#FATAL"><CODE>FATAL</CODE></A> Level.</TD>
  285. </TR>
  286. <TR BGCOLOR="white" CLASS="TableRowColor">
  287. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  288. <CODE>&nbsp;void</CODE></FONT></TD>
  289. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#fatal(java.lang.Object, java.lang.Throwable)">fatal</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  290. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</CODE>
  291. <BR>
  292. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log a message object with the <code>FATAL</code> level including
  293. the stack trace of the <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> <code>t</code> passed as
  294. parameter.</TD>
  295. </TR>
  296. <TR BGCOLOR="white" CLASS="TableRowColor">
  297. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  298. <CODE>protected &nbsp;void</CODE></FONT></TD>
  299. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#forcedLog(java.lang.String, org.apache.log4j.Priority, java.lang.Object, java.lang.Throwable)">forcedLog</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;fqcn,
  300. <A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;level,
  301. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  302. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</CODE>
  303. <BR>
  304. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method creates a new logging event and logs the event
  305. without further checks.</TD>
  306. </TR>
  307. <TR BGCOLOR="white" CLASS="TableRowColor">
  308. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  309. <CODE>&nbsp;boolean</CODE></FONT></TD>
  310. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getAdditivity()">getAdditivity</A></B>()</CODE>
  311. <BR>
  312. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the additivity flag for this Category instance.</TD>
  313. </TR>
  314. <TR BGCOLOR="white" CLASS="TableRowColor">
  315. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  316. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A></CODE></FONT></TD>
  317. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getAllAppenders()">getAllAppenders</A></B>()</CODE>
  318. <BR>
  319. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the appenders contained in this category as an <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util"><CODE>Enumeration</CODE></A>.</TD>
  320. </TR>
  321. <TR BGCOLOR="white" CLASS="TableRowColor">
  322. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  323. <CODE>&nbsp;<A HREF="../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A></CODE></FONT></TD>
  324. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getAppender(java.lang.String)">getAppender</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
  325. <BR>
  326. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Look for the appender named as <code>name</code>.</TD>
  327. </TR>
  328. <TR BGCOLOR="white" CLASS="TableRowColor">
  329. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  330. <CODE>&nbsp;<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A></CODE></FONT></TD>
  331. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getChainedPriority()">getChainedPriority</A></B>()</CODE>
  332. <BR>
  333. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Please use the the <A HREF="../../../org/apache/log4j/Category.html#getEffectiveLevel()"><CODE>getEffectiveLevel()</CODE></A> method
  334. instead.</I></TD>
  335. </TR>
  336. <TR BGCOLOR="white" CLASS="TableRowColor">
  337. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  338. <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A></CODE></FONT></TD>
  339. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getCurrentCategories()">getCurrentCategories</A></B>()</CODE>
  340. <BR>
  341. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/LogManager.html#getCurrentLoggers()"><CODE>LogManager.getCurrentLoggers()</CODE></A> instead.</I></TD>
  342. </TR>
  343. <TR BGCOLOR="white" CLASS="TableRowColor">
  344. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  345. <CODE>static&nbsp;<A HREF="../../../org/apache/log4j/spi/LoggerRepository.html" title="interface in org.apache.log4j.spi">LoggerRepository</A></CODE></FONT></TD>
  346. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getDefaultHierarchy()">getDefaultHierarchy</A></B>()</CODE>
  347. <BR>
  348. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/LogManager.html#getLoggerRepository()"><CODE>LogManager.getLoggerRepository()</CODE></A> instead.</I></TD>
  349. </TR>
  350. <TR BGCOLOR="white" CLASS="TableRowColor">
  351. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  352. <CODE>&nbsp;<A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j">Level</A></CODE></FONT></TD>
  353. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getEffectiveLevel()">getEffectiveLevel</A></B>()</CODE>
  354. <BR>
  355. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Starting from this category, search the category hierarchy for a
  356. non-null level and return it.</TD>
  357. </TR>
  358. <TR BGCOLOR="white" CLASS="TableRowColor">
  359. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  360. <CODE>&nbsp;<A HREF="../../../org/apache/log4j/spi/LoggerRepository.html" title="interface in org.apache.log4j.spi">LoggerRepository</A></CODE></FONT></TD>
  361. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getHierarchy()">getHierarchy</A></B>()</CODE>
  362. <BR>
  363. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/Category.html#getLoggerRepository()"><CODE>getLoggerRepository()</CODE></A> instead.</I></TD>
  364. </TR>
  365. <TR BGCOLOR="white" CLASS="TableRowColor">
  366. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  367. <CODE>static&nbsp;<A HREF="../../../org/apache/log4j/Category.html" title="class in org.apache.log4j">Category</A></CODE></FONT></TD>
  368. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getInstance(java.lang.Class)">getInstance</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;clazz)</CODE>
  369. <BR>
  370. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Please make sure to use <A HREF="../../../org/apache/log4j/Logger.html#getLogger(java.lang.Class)"><CODE>Logger.getLogger(Class)</CODE></A> instead.</I></TD>
  371. </TR>
  372. <TR BGCOLOR="white" CLASS="TableRowColor">
  373. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  374. <CODE>static&nbsp;<A HREF="../../../org/apache/log4j/Category.html" title="class in org.apache.log4j">Category</A></CODE></FONT></TD>
  375. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getInstance(java.lang.String)">getInstance</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
  376. <BR>
  377. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Make sure to use <A HREF="../../../org/apache/log4j/Logger.html#getLogger(java.lang.String)"><CODE>Logger.getLogger(String)</CODE></A> instead.</I></TD>
  378. </TR>
  379. <TR BGCOLOR="white" CLASS="TableRowColor">
  380. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  381. <CODE>&nbsp;<A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j">Level</A></CODE></FONT></TD>
  382. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getLevel()">getLevel</A></B>()</CODE>
  383. <BR>
  384. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the assigned <A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j"><CODE>Level</CODE></A>, if any, for this Category.</TD>
  385. </TR>
  386. <TR BGCOLOR="white" CLASS="TableRowColor">
  387. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  388. <CODE>&nbsp;<A HREF="../../../org/apache/log4j/spi/LoggerRepository.html" title="interface in org.apache.log4j.spi">LoggerRepository</A></CODE></FONT></TD>
  389. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getLoggerRepository()">getLoggerRepository</A></B>()</CODE>
  390. <BR>
  391. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the the <A HREF="../../../org/apache/log4j/spi/LoggerRepository.html" title="interface in org.apache.log4j.spi"><CODE>LoggerRepository</CODE></A> where this
  392. <code>Category</code> is attached.</TD>
  393. </TR>
  394. <TR BGCOLOR="white" CLASS="TableRowColor">
  395. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  396. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  397. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getName()">getName</A></B>()</CODE>
  398. <BR>
  399. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the category name.</TD>
  400. </TR>
  401. <TR BGCOLOR="white" CLASS="TableRowColor">
  402. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  403. <CODE>&nbsp;<A HREF="../../../org/apache/log4j/Category.html" title="class in org.apache.log4j">Category</A></CODE></FONT></TD>
  404. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getParent()">getParent</A></B>()</CODE>
  405. <BR>
  406. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the parent of this category.</TD>
  407. </TR>
  408. <TR BGCOLOR="white" CLASS="TableRowColor">
  409. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  410. <CODE>&nbsp;<A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j">Level</A></CODE></FONT></TD>
  411. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getPriority()">getPriority</A></B>()</CODE>
  412. <BR>
  413. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/Category.html#getLevel()"><CODE>getLevel()</CODE></A> instead.</I></TD>
  414. </TR>
  415. <TR BGCOLOR="white" CLASS="TableRowColor">
  416. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  417. <CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</A></CODE></FONT></TD>
  418. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getResourceBundle()">getResourceBundle</A></B>()</CODE>
  419. <BR>
  420. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the <em>inherited</em> <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util"><CODE>ResourceBundle</CODE></A> for this
  421. category.</TD>
  422. </TR>
  423. <TR BGCOLOR="white" CLASS="TableRowColor">
  424. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  425. <CODE>protected &nbsp;<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
  426. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getResourceBundleString(java.lang.String)">getResourceBundleString</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;key)</CODE>
  427. <BR>
  428. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the string resource coresponding to <code>key</code> in
  429. this category's inherited resource bundle.</TD>
  430. </TR>
  431. <TR BGCOLOR="white" CLASS="TableRowColor">
  432. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  433. <CODE>static&nbsp;<A HREF="../../../org/apache/log4j/Category.html" title="class in org.apache.log4j">Category</A></CODE></FONT></TD>
  434. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#getRoot()">getRoot</A></B>()</CODE>
  435. <BR>
  436. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/Logger.html#getRootLogger()"><CODE>Logger.getRootLogger()</CODE></A> instead.</I></TD>
  437. </TR>
  438. <TR BGCOLOR="white" CLASS="TableRowColor">
  439. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  440. <CODE>&nbsp;void</CODE></FONT></TD>
  441. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#info(java.lang.Object)">info</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message)</CODE>
  442. <BR>
  443. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log a message object with the <A HREF="../../../org/apache/log4j/Level.html#INFO"><CODE>INFO</CODE></A> Level.</TD>
  444. </TR>
  445. <TR BGCOLOR="white" CLASS="TableRowColor">
  446. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  447. <CODE>&nbsp;void</CODE></FONT></TD>
  448. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#info(java.lang.Object, java.lang.Throwable)">info</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  449. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</CODE>
  450. <BR>
  451. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log a message object with the <code>INFO</code> level including
  452. the stack trace of the <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> <code>t</code> passed as
  453. parameter.</TD>
  454. </TR>
  455. <TR BGCOLOR="white" CLASS="TableRowColor">
  456. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  457. <CODE>&nbsp;boolean</CODE></FONT></TD>
  458. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#isAttached(org.apache.log4j.Appender)">isAttached</A></B>(<A HREF="../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A>&nbsp;appender)</CODE>
  459. <BR>
  460. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is the appender passed as parameter attached to this category?</TD>
  461. </TR>
  462. <TR BGCOLOR="white" CLASS="TableRowColor">
  463. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  464. <CODE>&nbsp;boolean</CODE></FONT></TD>
  465. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#isDebugEnabled()">isDebugEnabled</A></B>()</CODE>
  466. <BR>
  467. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check whether this category is enabled for the <code>DEBUG</code>
  468. Level.</TD>
  469. </TR>
  470. <TR BGCOLOR="white" CLASS="TableRowColor">
  471. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  472. <CODE>&nbsp;boolean</CODE></FONT></TD>
  473. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#isEnabledFor(org.apache.log4j.Priority)">isEnabledFor</A></B>(<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;level)</CODE>
  474. <BR>
  475. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check whether this category is enabled for a given <A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j"><CODE>Level</CODE></A> passed as parameter.</TD>
  476. </TR>
  477. <TR BGCOLOR="white" CLASS="TableRowColor">
  478. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  479. <CODE>&nbsp;boolean</CODE></FONT></TD>
  480. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#isInfoEnabled()">isInfoEnabled</A></B>()</CODE>
  481. <BR>
  482. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Check whether this category is enabled for the info Level.</TD>
  483. </TR>
  484. <TR BGCOLOR="white" CLASS="TableRowColor">
  485. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  486. <CODE>&nbsp;void</CODE></FONT></TD>
  487. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#l7dlog(org.apache.log4j.Priority, java.lang.String, java.lang.Object[], java.lang.Throwable)">l7dlog</A></B>(<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;priority,
  488. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;key,
  489. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;params,
  490. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</CODE>
  491. <BR>
  492. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log a localized and parameterized message.</TD>
  493. </TR>
  494. <TR BGCOLOR="white" CLASS="TableRowColor">
  495. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  496. <CODE>&nbsp;void</CODE></FONT></TD>
  497. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#l7dlog(org.apache.log4j.Priority, java.lang.String, java.lang.Throwable)">l7dlog</A></B>(<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;priority,
  498. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;key,
  499. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</CODE>
  500. <BR>
  501. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log a localized message.</TD>
  502. </TR>
  503. <TR BGCOLOR="white" CLASS="TableRowColor">
  504. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  505. <CODE>&nbsp;void</CODE></FONT></TD>
  506. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#log(org.apache.log4j.Priority, java.lang.Object)">log</A></B>(<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;priority,
  507. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message)</CODE>
  508. <BR>
  509. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This generic form is intended to be used by wrappers.</TD>
  510. </TR>
  511. <TR BGCOLOR="white" CLASS="TableRowColor">
  512. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  513. <CODE>&nbsp;void</CODE></FONT></TD>
  514. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#log(org.apache.log4j.Priority, java.lang.Object, java.lang.Throwable)">log</A></B>(<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;priority,
  515. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  516. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</CODE>
  517. <BR>
  518. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This generic form is intended to be used by wrappers.</TD>
  519. </TR>
  520. <TR BGCOLOR="white" CLASS="TableRowColor">
  521. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  522. <CODE>&nbsp;void</CODE></FONT></TD>
  523. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#log(java.lang.String, org.apache.log4j.Priority, java.lang.Object, java.lang.Throwable)">log</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;callerFQCN,
  524. <A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;level,
  525. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  526. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</CODE>
  527. <BR>
  528. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is the most generic printing method.</TD>
  529. </TR>
  530. <TR BGCOLOR="white" CLASS="TableRowColor">
  531. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  532. <CODE>&nbsp;void</CODE></FONT></TD>
  533. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#removeAllAppenders()">removeAllAppenders</A></B>()</CODE>
  534. <BR>
  535. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove all previously added appenders from this Category
  536. instance.</TD>
  537. </TR>
  538. <TR BGCOLOR="white" CLASS="TableRowColor">
  539. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  540. <CODE>&nbsp;void</CODE></FONT></TD>
  541. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#removeAppender(org.apache.log4j.Appender)">removeAppender</A></B>(<A HREF="../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A>&nbsp;appender)</CODE>
  542. <BR>
  543. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove the appender passed as parameter form the list of appenders.</TD>
  544. </TR>
  545. <TR BGCOLOR="white" CLASS="TableRowColor">
  546. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  547. <CODE>&nbsp;void</CODE></FONT></TD>
  548. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#removeAppender(java.lang.String)">removeAppender</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</CODE>
  549. <BR>
  550. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove the appender with the name passed as parameter form the
  551. list of appenders.</TD>
  552. </TR>
  553. <TR BGCOLOR="white" CLASS="TableRowColor">
  554. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  555. <CODE>&nbsp;void</CODE></FONT></TD>
  556. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#setAdditivity(boolean)">setAdditivity</A></B>(boolean&nbsp;additive)</CODE>
  557. <BR>
  558. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the additivity flag for this Category instance.</TD>
  559. </TR>
  560. <TR BGCOLOR="white" CLASS="TableRowColor">
  561. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  562. <CODE>&nbsp;void</CODE></FONT></TD>
  563. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#setLevel(org.apache.log4j.Level)">setLevel</A></B>(<A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j">Level</A>&nbsp;level)</CODE>
  564. <BR>
  565. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the level of this Category.</TD>
  566. </TR>
  567. <TR BGCOLOR="white" CLASS="TableRowColor">
  568. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  569. <CODE>&nbsp;void</CODE></FONT></TD>
  570. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#setPriority(org.apache.log4j.Priority)">setPriority</A></B>(<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;priority)</CODE>
  571. <BR>
  572. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/Category.html#setLevel(org.apache.log4j.Level)"><CODE>setLevel(org.apache.log4j.Level)</CODE></A> instead.</I></TD>
  573. </TR>
  574. <TR BGCOLOR="white" CLASS="TableRowColor">
  575. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  576. <CODE>&nbsp;void</CODE></FONT></TD>
  577. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#setResourceBundle(java.util.ResourceBundle)">setResourceBundle</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</A>&nbsp;bundle)</CODE>
  578. <BR>
  579. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the resource bundle to be used with localized logging
  580. methods <A HREF="../../../org/apache/log4j/Category.html#l7dlog(org.apache.log4j.Priority, java.lang.String, java.lang.Throwable)"><CODE>l7dlog(Priority,String,Throwable)</CODE></A> and <A HREF="../../../org/apache/log4j/Category.html#l7dlog(org.apache.log4j.Priority, java.lang.String, java.lang.Object[], java.lang.Throwable)"><CODE>l7dlog(Priority,String,Object[],Throwable)</CODE></A>.</TD>
  581. </TR>
  582. <TR BGCOLOR="white" CLASS="TableRowColor">
  583. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  584. <CODE>static&nbsp;void</CODE></FONT></TD>
  585. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#shutdown()">shutdown</A></B>()</CODE>
  586. <BR>
  587. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/LogManager.html#shutdown()"><CODE>LogManager.shutdown()</CODE></A> instead.</I></TD>
  588. </TR>
  589. <TR BGCOLOR="white" CLASS="TableRowColor">
  590. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  591. <CODE>&nbsp;void</CODE></FONT></TD>
  592. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#warn(java.lang.Object)">warn</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message)</CODE>
  593. <BR>
  594. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log a message object with the <A HREF="../../../org/apache/log4j/Level.html#WARN"><CODE>WARN</CODE></A> Level.</TD>
  595. </TR>
  596. <TR BGCOLOR="white" CLASS="TableRowColor">
  597. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  598. <CODE>&nbsp;void</CODE></FONT></TD>
  599. <TD><CODE><B><A HREF="../../../org/apache/log4j/Category.html#warn(java.lang.Object, java.lang.Throwable)">warn</A></B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  600. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</CODE>
  601. <BR>
  602. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Log a message with the <code>WARN</code> level including the
  603. stack trace of the <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> <code>t</code> passed as
  604. parameter.</TD>
  605. </TR>
  606. </TABLE>
  607. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  608. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  609. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  610. <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
  611. </TR>
  612. <TR BGCOLOR="white" CLASS="TableRowColor">
  613. <TD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  614. </TR>
  615. </TABLE>
  616. &nbsp;
  617. <P>
  618. <!-- ============ FIELD DETAIL =========== -->
  619. <A NAME="field_detail"><!-- --></A>
  620. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  621. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  622. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  623. <B>Field Detail</B></FONT></TH>
  624. </TR>
  625. </TABLE>
  626. <A NAME="name"><!-- --></A><H3>
  627. name</H3>
  628. <PRE>
  629. protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>name</B></PRE>
  630. <DL>
  631. <DD>The name of this category.
  632. <P>
  633. <DL>
  634. </DL>
  635. </DL>
  636. <HR>
  637. <A NAME="level"><!-- --></A><H3>
  638. level</H3>
  639. <PRE>
  640. protected volatile <A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j">Level</A> <B>level</B></PRE>
  641. <DL>
  642. <DD>The assigned level of this category. The
  643. <code>level</code> variable need not be assigned a value in
  644. which case it is inherited form the hierarchy.
  645. <P>
  646. <DL>
  647. </DL>
  648. </DL>
  649. <HR>
  650. <A NAME="parent"><!-- --></A><H3>
  651. parent</H3>
  652. <PRE>
  653. protected volatile <A HREF="../../../org/apache/log4j/Category.html" title="class in org.apache.log4j">Category</A> <B>parent</B></PRE>
  654. <DL>
  655. <DD>The parent of this category. All categories have at least one
  656. ancestor which is the root category.
  657. <P>
  658. <DL>
  659. </DL>
  660. </DL>
  661. <HR>
  662. <A NAME="resourceBundle"><!-- --></A><H3>
  663. resourceBundle</H3>
  664. <PRE>
  665. protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</A> <B>resourceBundle</B></PRE>
  666. <DL>
  667. <DL>
  668. </DL>
  669. </DL>
  670. <HR>
  671. <A NAME="repository"><!-- --></A><H3>
  672. repository</H3>
  673. <PRE>
  674. protected <A HREF="../../../org/apache/log4j/spi/LoggerRepository.html" title="interface in org.apache.log4j.spi">LoggerRepository</A> <B>repository</B></PRE>
  675. <DL>
  676. <DL>
  677. </DL>
  678. </DL>
  679. <HR>
  680. <A NAME="additive"><!-- --></A><H3>
  681. additive</H3>
  682. <PRE>
  683. protected boolean <B>additive</B></PRE>
  684. <DL>
  685. <DD>Additivity is set to true by default, that is children inherit
  686. the appenders of their ancestors by default. If this variable is
  687. set to <code>false</code> then the appenders found in the
  688. ancestors of this category are not used. However, the children
  689. of this category will inherit its appenders, unless the children
  690. have their additivity flag set to <code>false</code> too. See
  691. the user manual for more details.
  692. <P>
  693. <DL>
  694. </DL>
  695. </DL>
  696. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  697. <A NAME="constructor_detail"><!-- --></A>
  698. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  699. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  700. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  701. <B>Constructor Detail</B></FONT></TH>
  702. </TR>
  703. </TABLE>
  704. <A NAME="Category(java.lang.String)"><!-- --></A><H3>
  705. Category</H3>
  706. <PRE>
  707. protected <B>Category</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
  708. <DL>
  709. <DD>This constructor created a new <code>Category</code> instance and
  710. sets its name.
  711. <p>It is intended to be used by sub-classes only. You should not
  712. create categories directly.
  713. <P>
  714. <DL>
  715. <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the category.</DL>
  716. </DL>
  717. <!-- ============ METHOD DETAIL ========== -->
  718. <A NAME="method_detail"><!-- --></A>
  719. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  720. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  721. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  722. <B>Method Detail</B></FONT></TH>
  723. </TR>
  724. </TABLE>
  725. <A NAME="addAppender(org.apache.log4j.Appender)"><!-- --></A><H3>
  726. addAppender</H3>
  727. <PRE>
  728. public void <B>addAppender</B>(<A HREF="../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A>&nbsp;newAppender)</PRE>
  729. <DL>
  730. <DD>Add <code>newAppender</code> to the list of appenders of this
  731. Category instance.
  732. <p>If <code>newAppender</code> is already in the list of
  733. appenders, then it won't be added again.
  734. <P>
  735. <DD><DL>
  736. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html#addAppender(org.apache.log4j.Appender)">addAppender</A></CODE> in interface <CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  737. </DD>
  738. <DD><DL>
  739. </DL>
  740. </DD>
  741. </DL>
  742. <HR>
  743. <A NAME="assertLog(boolean, java.lang.String)"><!-- --></A><H3>
  744. assertLog</H3>
  745. <PRE>
  746. public void <B>assertLog</B>(boolean&nbsp;assertion,
  747. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;msg)</PRE>
  748. <DL>
  749. <DD>If <code>assertion</code> parameter is <code>false</code>, then
  750. logs <code>msg</code> as an <A HREF="../../../org/apache/log4j/Category.html#error(java.lang.Object)"><CODE>error</CODE></A> statement.
  751. <p>The <code>assert</code> method has been renamed to
  752. <code>assertLog</code> because <code>assert</code> is a language
  753. reserved word in JDK 1.4.
  754. <P>
  755. <DD><DL>
  756. </DL>
  757. </DD>
  758. <DD><DL>
  759. <DT><B>Parameters:</B><DD><CODE>assertion</CODE> - <DD><CODE>msg</CODE> - The message to print if <code>assertion</code> is
  760. false.<DT><B>Since:</B></DT>
  761. <DD>1.2</DD>
  762. </DL>
  763. </DD>
  764. </DL>
  765. <HR>
  766. <A NAME="callAppenders(org.apache.log4j.spi.LoggingEvent)"><!-- --></A><H3>
  767. callAppenders</H3>
  768. <PRE>
  769. public void <B>callAppenders</B>(<A HREF="../../../org/apache/log4j/spi/LoggingEvent.html" title="class in org.apache.log4j.spi">LoggingEvent</A>&nbsp;event)</PRE>
  770. <DL>
  771. <DD>Call the appenders in the hierrachy starting at
  772. <code>this</code>. If no appenders could be found, emit a
  773. warning.
  774. <p>This method calls all the appenders inherited from the
  775. hierarchy circumventing any evaluation of whether to log or not
  776. to log the particular log request.
  777. <P>
  778. <DD><DL>
  779. </DL>
  780. </DD>
  781. <DD><DL>
  782. <DT><B>Parameters:</B><DD><CODE>event</CODE> - the event to log.</DL>
  783. </DD>
  784. </DL>
  785. <HR>
  786. <A NAME="debug(java.lang.Object)"><!-- --></A><H3>
  787. debug</H3>
  788. <PRE>
  789. public void <B>debug</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message)</PRE>
  790. <DL>
  791. <DD>Log a message object with the <A HREF="../../../org/apache/log4j/Level.html#DEBUG"><CODE>DEBUG</CODE></A> level.
  792. <p>This method first checks if this category is <code>DEBUG</code>
  793. enabled by comparing the level of this category with the <A HREF="../../../org/apache/log4j/Level.html#DEBUG"><CODE>DEBUG</CODE></A> level. If this category is
  794. <code>DEBUG</code> enabled, then it converts the message object
  795. (passed as parameter) to a string by invoking the appropriate
  796. <A HREF="../../../org/apache/log4j/or/ObjectRenderer.html" title="interface in org.apache.log4j.or"><CODE>ObjectRenderer</CODE></A>. It then proceeds to call all the
  797. registered appenders in this category and also higher in the
  798. hierarchy depending on the value of the additivity flag.
  799. <p><b>WARNING</b> Note that passing a <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> to this
  800. method will print the name of the <code>Throwable</code> but no
  801. stack trace. To print a stack trace use the <A HREF="../../../org/apache/log4j/Category.html#debug(java.lang.Object, java.lang.Throwable)"><CODE>debug(Object,
  802. Throwable)</CODE></A> form instead.
  803. <P>
  804. <DD><DL>
  805. </DL>
  806. </DD>
  807. <DD><DL>
  808. <DT><B>Parameters:</B><DD><CODE>message</CODE> - the message object to log.</DL>
  809. </DD>
  810. </DL>
  811. <HR>
  812. <A NAME="debug(java.lang.Object, java.lang.Throwable)"><!-- --></A><H3>
  813. debug</H3>
  814. <PRE>
  815. public void <B>debug</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  816. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</PRE>
  817. <DL>
  818. <DD>Log a message object with the <code>DEBUG</code> level including
  819. the stack trace of the <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> <code>t</code> passed as
  820. parameter.
  821. <p>See <A HREF="../../../org/apache/log4j/Category.html#debug(java.lang.Object)"><CODE>debug(Object)</CODE></A> form for more detailed information.
  822. <P>
  823. <DD><DL>
  824. </DL>
  825. </DD>
  826. <DD><DL>
  827. <DT><B>Parameters:</B><DD><CODE>message</CODE> - the message object to log.<DD><CODE>t</CODE> - the exception to log, including its stack trace.</DL>
  828. </DD>
  829. </DL>
  830. <HR>
  831. <A NAME="error(java.lang.Object)"><!-- --></A><H3>
  832. error</H3>
  833. <PRE>
  834. public void <B>error</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message)</PRE>
  835. <DL>
  836. <DD>Log a message object with the <A HREF="../../../org/apache/log4j/Level.html#ERROR"><CODE>ERROR</CODE></A> Level.
  837. <p>This method first checks if this category is <code>ERROR</code>
  838. enabled by comparing the level of this category with <A HREF="../../../org/apache/log4j/Level.html#ERROR"><CODE>ERROR</CODE></A> Level. If this category is <code>ERROR</code>
  839. enabled, then it converts the message object passed as parameter
  840. to a string by invoking the appropriate <A HREF="../../../org/apache/log4j/or/ObjectRenderer.html" title="interface in org.apache.log4j.or"><CODE>ObjectRenderer</CODE></A>. It proceeds to call all the
  841. registered appenders in this category and also higher in the
  842. hierarchy depending on the value of the additivity flag.
  843. <p><b>WARNING</b> Note that passing a <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> to this
  844. method will print the name of the <code>Throwable</code> but no
  845. stack trace. To print a stack trace use the <A HREF="../../../org/apache/log4j/Category.html#error(java.lang.Object, java.lang.Throwable)"><CODE>error(Object,
  846. Throwable)</CODE></A> form instead.
  847. <P>
  848. <DD><DL>
  849. </DL>
  850. </DD>
  851. <DD><DL>
  852. <DT><B>Parameters:</B><DD><CODE>message</CODE> - the message object to log</DL>
  853. </DD>
  854. </DL>
  855. <HR>
  856. <A NAME="error(java.lang.Object, java.lang.Throwable)"><!-- --></A><H3>
  857. error</H3>
  858. <PRE>
  859. public void <B>error</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  860. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</PRE>
  861. <DL>
  862. <DD>Log a message object with the <code>ERROR</code> level including
  863. the stack trace of the <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> <code>t</code> passed as
  864. parameter.
  865. <p>See <A HREF="../../../org/apache/log4j/Category.html#error(java.lang.Object)"><CODE>error(Object)</CODE></A> form for more detailed information.
  866. <P>
  867. <DD><DL>
  868. </DL>
  869. </DD>
  870. <DD><DL>
  871. <DT><B>Parameters:</B><DD><CODE>message</CODE> - the message object to log.<DD><CODE>t</CODE> - the exception to log, including its stack trace.</DL>
  872. </DD>
  873. </DL>
  874. <HR>
  875. <A NAME="exists(java.lang.String)"><!-- --></A><H3>
  876. exists</H3>
  877. <PRE>
  878. public static <A HREF="../../../org/apache/log4j/Logger.html" title="class in org.apache.log4j">Logger</A> <B>exists</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
  879. <DL>
  880. <DD><B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/LogManager.html#exists(java.lang.String)"><CODE>LogManager.exists(java.lang.String)</CODE></A> instead.</I>
  881. <P>
  882. <DD>If the named category exists (in the default hierarchy) then it
  883. returns a reference to the category, otherwise it returns
  884. <code>null</code>.
  885. <P>
  886. <DD><DL>
  887. </DL>
  888. </DD>
  889. <DD><DL>
  890. <DT><B>Since:</B></DT>
  891. <DD>0.8.5</DD>
  892. </DL>
  893. </DD>
  894. </DL>
  895. <HR>
  896. <A NAME="fatal(java.lang.Object)"><!-- --></A><H3>
  897. fatal</H3>
  898. <PRE>
  899. public void <B>fatal</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message)</PRE>
  900. <DL>
  901. <DD>Log a message object with the <A HREF="../../../org/apache/log4j/Level.html#FATAL"><CODE>FATAL</CODE></A> Level.
  902. <p>This method first checks if this category is <code>FATAL</code>
  903. enabled by comparing the level of this category with <A HREF="../../../org/apache/log4j/Level.html#FATAL"><CODE>FATAL</CODE></A> Level. If the category is <code>FATAL</code>
  904. enabled, then it converts the message object passed as parameter
  905. to a string by invoking the appropriate
  906. <A HREF="../../../org/apache/log4j/or/ObjectRenderer.html" title="interface in org.apache.log4j.or"><CODE>ObjectRenderer</CODE></A>. It
  907. proceeds to call all the registered appenders in this category and
  908. also higher in the hierarchy depending on the value of the
  909. additivity flag.
  910. <p><b>WARNING</b> Note that passing a <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> to this
  911. method will print the name of the Throwable but no stack trace. To
  912. print a stack trace use the <A HREF="../../../org/apache/log4j/Category.html#fatal(java.lang.Object, java.lang.Throwable)"><CODE>fatal(Object, Throwable)</CODE></A> form
  913. instead.
  914. <P>
  915. <DD><DL>
  916. </DL>
  917. </DD>
  918. <DD><DL>
  919. <DT><B>Parameters:</B><DD><CODE>message</CODE> - the message object to log</DL>
  920. </DD>
  921. </DL>
  922. <HR>
  923. <A NAME="fatal(java.lang.Object, java.lang.Throwable)"><!-- --></A><H3>
  924. fatal</H3>
  925. <PRE>
  926. public void <B>fatal</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  927. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</PRE>
  928. <DL>
  929. <DD>Log a message object with the <code>FATAL</code> level including
  930. the stack trace of the <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> <code>t</code> passed as
  931. parameter.
  932. <p>See <A HREF="../../../org/apache/log4j/Category.html#fatal(java.lang.Object)"><CODE>fatal(Object)</CODE></A> for more detailed information.
  933. <P>
  934. <DD><DL>
  935. </DL>
  936. </DD>
  937. <DD><DL>
  938. <DT><B>Parameters:</B><DD><CODE>message</CODE> - the message object to log.<DD><CODE>t</CODE> - the exception to log, including its stack trace.</DL>
  939. </DD>
  940. </DL>
  941. <HR>
  942. <A NAME="forcedLog(java.lang.String, org.apache.log4j.Priority, java.lang.Object, java.lang.Throwable)"><!-- --></A><H3>
  943. forcedLog</H3>
  944. <PRE>
  945. protected void <B>forcedLog</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;fqcn,
  946. <A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;level,
  947. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  948. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</PRE>
  949. <DL>
  950. <DD>This method creates a new logging event and logs the event
  951. without further checks.
  952. <P>
  953. <DD><DL>
  954. </DL>
  955. </DD>
  956. <DD><DL>
  957. </DL>
  958. </DD>
  959. </DL>
  960. <HR>
  961. <A NAME="getAdditivity()"><!-- --></A><H3>
  962. getAdditivity</H3>
  963. <PRE>
  964. public boolean <B>getAdditivity</B>()</PRE>
  965. <DL>
  966. <DD>Get the additivity flag for this Category instance.
  967. <P>
  968. <DD><DL>
  969. </DL>
  970. </DD>
  971. <DD><DL>
  972. </DL>
  973. </DD>
  974. </DL>
  975. <HR>
  976. <A NAME="getAllAppenders()"><!-- --></A><H3>
  977. getAllAppenders</H3>
  978. <PRE>
  979. public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A> <B>getAllAppenders</B>()</PRE>
  980. <DL>
  981. <DD>Get the appenders contained in this category as an <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util"><CODE>Enumeration</CODE></A>. If no appenders can be found, then a <A HREF="../../../org/apache/log4j/helpers/NullEnumeration.html" title="class in org.apache.log4j.helpers"><CODE>NullEnumeration</CODE></A>
  982. is returned.
  983. <P>
  984. <DD><DL>
  985. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html#getAllAppenders()">getAllAppenders</A></CODE> in interface <CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  986. </DD>
  987. <DD><DL>
  988. <DT><B>Returns:</B><DD>Enumeration An enumeration of the appenders in this category.</DL>
  989. </DD>
  990. </DL>
  991. <HR>
  992. <A NAME="getAppender(java.lang.String)"><!-- --></A><H3>
  993. getAppender</H3>
  994. <PRE>
  995. public <A HREF="../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A> <B>getAppender</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
  996. <DL>
  997. <DD>Look for the appender named as <code>name</code>.
  998. <p>Return the appender with that name if in the list. Return
  999. <code>null</code> otherwise.
  1000. <P>
  1001. <DD><DL>
  1002. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html#getAppender(java.lang.String)">getAppender</A></CODE> in interface <CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  1003. </DD>
  1004. <DD><DL>
  1005. </DL>
  1006. </DD>
  1007. </DL>
  1008. <HR>
  1009. <A NAME="getEffectiveLevel()"><!-- --></A><H3>
  1010. getEffectiveLevel</H3>
  1011. <PRE>
  1012. public <A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j">Level</A> <B>getEffectiveLevel</B>()</PRE>
  1013. <DL>
  1014. <DD>Starting from this category, search the category hierarchy for a
  1015. non-null level and return it. Otherwise, return the level of the
  1016. root category.
  1017. <p>The Category class is designed so that this method executes as
  1018. quickly as possible.
  1019. <P>
  1020. <DD><DL>
  1021. </DL>
  1022. </DD>
  1023. <DD><DL>
  1024. </DL>
  1025. </DD>
  1026. </DL>
  1027. <HR>
  1028. <A NAME="getChainedPriority()"><!-- --></A><H3>
  1029. getChainedPriority</H3>
  1030. <PRE>
  1031. public <A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A> <B>getChainedPriority</B>()</PRE>
  1032. <DL>
  1033. <DD><B>Deprecated.</B>&nbsp;<I>Please use the the <A HREF="../../../org/apache/log4j/Category.html#getEffectiveLevel()"><CODE>getEffectiveLevel()</CODE></A> method
  1034. instead.</I>
  1035. <P>
  1036. <DD><DL>
  1037. </DL>
  1038. </DD>
  1039. <DD><DL>
  1040. </DL>
  1041. </DD>
  1042. </DL>
  1043. <HR>
  1044. <A NAME="getCurrentCategories()"><!-- --></A><H3>
  1045. getCurrentCategories</H3>
  1046. <PRE>
  1047. public static <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util">Enumeration</A> <B>getCurrentCategories</B>()</PRE>
  1048. <DL>
  1049. <DD><B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/LogManager.html#getCurrentLoggers()"><CODE>LogManager.getCurrentLoggers()</CODE></A> instead.</I>
  1050. <P>
  1051. <DD>Returns all the currently defined categories in the default
  1052. hierarchy as an <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util"><CODE>Enumeration</CODE></A>.
  1053. <p>The root category is <em>not</em> included in the returned
  1054. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/Enumeration.html?is-external=true" title="class or interface in java.util"><CODE>Enumeration</CODE></A>.
  1055. <P>
  1056. <DD><DL>
  1057. </DL>
  1058. </DD>
  1059. <DD><DL>
  1060. </DL>
  1061. </DD>
  1062. </DL>
  1063. <HR>
  1064. <A NAME="getDefaultHierarchy()"><!-- --></A><H3>
  1065. getDefaultHierarchy</H3>
  1066. <PRE>
  1067. public static <A HREF="../../../org/apache/log4j/spi/LoggerRepository.html" title="interface in org.apache.log4j.spi">LoggerRepository</A> <B>getDefaultHierarchy</B>()</PRE>
  1068. <DL>
  1069. <DD><B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/LogManager.html#getLoggerRepository()"><CODE>LogManager.getLoggerRepository()</CODE></A> instead.</I>
  1070. <P>
  1071. <DD>Return the default Hierarchy instance.
  1072. <P>
  1073. <DD><DL>
  1074. </DL>
  1075. </DD>
  1076. <DD><DL>
  1077. <DT><B>Since:</B></DT>
  1078. <DD>1.0</DD>
  1079. </DL>
  1080. </DD>
  1081. </DL>
  1082. <HR>
  1083. <A NAME="getHierarchy()"><!-- --></A><H3>
  1084. getHierarchy</H3>
  1085. <PRE>
  1086. public <A HREF="../../../org/apache/log4j/spi/LoggerRepository.html" title="interface in org.apache.log4j.spi">LoggerRepository</A> <B>getHierarchy</B>()</PRE>
  1087. <DL>
  1088. <DD><B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/Category.html#getLoggerRepository()"><CODE>getLoggerRepository()</CODE></A> instead.</I>
  1089. <P>
  1090. <DD>Return the the <A HREF="../../../org/apache/log4j/Hierarchy.html" title="class in org.apache.log4j"><CODE>Hierarchy</CODE></A> where this <code>Category</code>
  1091. instance is attached.
  1092. <P>
  1093. <DD><DL>
  1094. </DL>
  1095. </DD>
  1096. <DD><DL>
  1097. <DT><B>Since:</B></DT>
  1098. <DD>1.1</DD>
  1099. </DL>
  1100. </DD>
  1101. </DL>
  1102. <HR>
  1103. <A NAME="getLoggerRepository()"><!-- --></A><H3>
  1104. getLoggerRepository</H3>
  1105. <PRE>
  1106. public <A HREF="../../../org/apache/log4j/spi/LoggerRepository.html" title="interface in org.apache.log4j.spi">LoggerRepository</A> <B>getLoggerRepository</B>()</PRE>
  1107. <DL>
  1108. <DD>Return the the <A HREF="../../../org/apache/log4j/spi/LoggerRepository.html" title="interface in org.apache.log4j.spi"><CODE>LoggerRepository</CODE></A> where this
  1109. <code>Category</code> is attached.
  1110. <P>
  1111. <DD><DL>
  1112. </DL>
  1113. </DD>
  1114. <DD><DL>
  1115. <DT><B>Since:</B></DT>
  1116. <DD>1.2</DD>
  1117. </DL>
  1118. </DD>
  1119. </DL>
  1120. <HR>
  1121. <A NAME="getInstance(java.lang.String)"><!-- --></A><H3>
  1122. getInstance</H3>
  1123. <PRE>
  1124. public static <A HREF="../../../org/apache/log4j/Category.html" title="class in org.apache.log4j">Category</A> <B>getInstance</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
  1125. <DL>
  1126. <DD><B>Deprecated.</B>&nbsp;<I>Make sure to use <A HREF="../../../org/apache/log4j/Logger.html#getLogger(java.lang.String)"><CODE>Logger.getLogger(String)</CODE></A> instead.</I>
  1127. <P>
  1128. <DD><DL>
  1129. </DL>
  1130. </DD>
  1131. <DD><DL>
  1132. </DL>
  1133. </DD>
  1134. </DL>
  1135. <HR>
  1136. <A NAME="getInstance(java.lang.Class)"><!-- --></A><H3>
  1137. getInstance</H3>
  1138. <PRE>
  1139. public static <A HREF="../../../org/apache/log4j/Category.html" title="class in org.apache.log4j">Category</A> <B>getInstance</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;clazz)</PRE>
  1140. <DL>
  1141. <DD><B>Deprecated.</B>&nbsp;<I>Please make sure to use <A HREF="../../../org/apache/log4j/Logger.html#getLogger(java.lang.Class)"><CODE>Logger.getLogger(Class)</CODE></A> instead.</I>
  1142. <P>
  1143. <DD><DL>
  1144. </DL>
  1145. </DD>
  1146. <DD><DL>
  1147. </DL>
  1148. </DD>
  1149. </DL>
  1150. <HR>
  1151. <A NAME="getName()"><!-- --></A><H3>
  1152. getName</H3>
  1153. <PRE>
  1154. public final <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getName</B>()</PRE>
  1155. <DL>
  1156. <DD>Return the category name.
  1157. <P>
  1158. <DD><DL>
  1159. </DL>
  1160. </DD>
  1161. <DD><DL>
  1162. </DL>
  1163. </DD>
  1164. </DL>
  1165. <HR>
  1166. <A NAME="getParent()"><!-- --></A><H3>
  1167. getParent</H3>
  1168. <PRE>
  1169. public final <A HREF="../../../org/apache/log4j/Category.html" title="class in org.apache.log4j">Category</A> <B>getParent</B>()</PRE>
  1170. <DL>
  1171. <DD>Returns the parent of this category. Note that the parent of a
  1172. given category may change during the lifetime of the category.
  1173. <p>The root category will return <code>null</code>.
  1174. <P>
  1175. <DD><DL>
  1176. </DL>
  1177. </DD>
  1178. <DD><DL>
  1179. <DT><B>Since:</B></DT>
  1180. <DD>1.2</DD>
  1181. </DL>
  1182. </DD>
  1183. </DL>
  1184. <HR>
  1185. <A NAME="getLevel()"><!-- --></A><H3>
  1186. getLevel</H3>
  1187. <PRE>
  1188. public final <A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j">Level</A> <B>getLevel</B>()</PRE>
  1189. <DL>
  1190. <DD>Returns the assigned <A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j"><CODE>Level</CODE></A>, if any, for this Category.
  1191. <P>
  1192. <DD><DL>
  1193. </DL>
  1194. </DD>
  1195. <DD><DL>
  1196. <DT><B>Returns:</B><DD>Level - the assigned Level, can be <code>null</code>.</DL>
  1197. </DD>
  1198. </DL>
  1199. <HR>
  1200. <A NAME="getPriority()"><!-- --></A><H3>
  1201. getPriority</H3>
  1202. <PRE>
  1203. public final <A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j">Level</A> <B>getPriority</B>()</PRE>
  1204. <DL>
  1205. <DD><B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/Category.html#getLevel()"><CODE>getLevel()</CODE></A> instead.</I>
  1206. <P>
  1207. <DD><DL>
  1208. </DL>
  1209. </DD>
  1210. <DD><DL>
  1211. </DL>
  1212. </DD>
  1213. </DL>
  1214. <HR>
  1215. <A NAME="getRoot()"><!-- --></A><H3>
  1216. getRoot</H3>
  1217. <PRE>
  1218. public static final <A HREF="../../../org/apache/log4j/Category.html" title="class in org.apache.log4j">Category</A> <B>getRoot</B>()</PRE>
  1219. <DL>
  1220. <DD><B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/Logger.html#getRootLogger()"><CODE>Logger.getRootLogger()</CODE></A> instead.</I>
  1221. <P>
  1222. <DD><DL>
  1223. </DL>
  1224. </DD>
  1225. <DD><DL>
  1226. </DL>
  1227. </DD>
  1228. </DL>
  1229. <HR>
  1230. <A NAME="getResourceBundle()"><!-- --></A><H3>
  1231. getResourceBundle</H3>
  1232. <PRE>
  1233. public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</A> <B>getResourceBundle</B>()</PRE>
  1234. <DL>
  1235. <DD>Return the <em>inherited</em> <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util"><CODE>ResourceBundle</CODE></A> for this
  1236. category.
  1237. <p>This method walks the hierarchy to find the appropriate
  1238. resource bundle. It will return the resource bundle attached to
  1239. the closest ancestor of this category, much like the way
  1240. priorities are searched. In case there is no bundle in the
  1241. hierarchy then <code>null</code> is returned.
  1242. <P>
  1243. <DD><DL>
  1244. </DL>
  1245. </DD>
  1246. <DD><DL>
  1247. <DT><B>Since:</B></DT>
  1248. <DD>0.9.0</DD>
  1249. </DL>
  1250. </DD>
  1251. </DL>
  1252. <HR>
  1253. <A NAME="getResourceBundleString(java.lang.String)"><!-- --></A><H3>
  1254. getResourceBundleString</H3>
  1255. <PRE>
  1256. protected <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getResourceBundleString</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;key)</PRE>
  1257. <DL>
  1258. <DD>Returns the string resource coresponding to <code>key</code> in
  1259. this category's inherited resource bundle. See also <A HREF="../../../org/apache/log4j/Category.html#getResourceBundle()"><CODE>getResourceBundle()</CODE></A>.
  1260. <p>If the resource cannot be found, then an <A HREF="../../../org/apache/log4j/Category.html#error(java.lang.Object)"><CODE>error</CODE></A>
  1261. message will be logged complaining about the missing resource.
  1262. <P>
  1263. <DD><DL>
  1264. </DL>
  1265. </DD>
  1266. <DD><DL>
  1267. </DL>
  1268. </DD>
  1269. </DL>
  1270. <HR>
  1271. <A NAME="info(java.lang.Object)"><!-- --></A><H3>
  1272. info</H3>
  1273. <PRE>
  1274. public void <B>info</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message)</PRE>
  1275. <DL>
  1276. <DD>Log a message object with the <A HREF="../../../org/apache/log4j/Level.html#INFO"><CODE>INFO</CODE></A> Level.
  1277. <p>This method first checks if this category is <code>INFO</code>
  1278. enabled by comparing the level of this category with <A HREF="../../../org/apache/log4j/Level.html#INFO"><CODE>INFO</CODE></A> Level. If the category is <code>INFO</code>
  1279. enabled, then it converts the message object passed as parameter
  1280. to a string by invoking the appropriate
  1281. <A HREF="../../../org/apache/log4j/or/ObjectRenderer.html" title="interface in org.apache.log4j.or"><CODE>ObjectRenderer</CODE></A>. It
  1282. proceeds to call all the registered appenders in this category and
  1283. also higher in the hierarchy depending on the value of the
  1284. additivity flag.
  1285. <p><b>WARNING</b> Note that passing a <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> to this
  1286. method will print the name of the Throwable but no stack trace. To
  1287. print a stack trace use the <A HREF="../../../org/apache/log4j/Category.html#info(java.lang.Object, java.lang.Throwable)"><CODE>info(Object, Throwable)</CODE></A> form
  1288. instead.
  1289. <P>
  1290. <DD><DL>
  1291. </DL>
  1292. </DD>
  1293. <DD><DL>
  1294. <DT><B>Parameters:</B><DD><CODE>message</CODE> - the message object to log</DL>
  1295. </DD>
  1296. </DL>
  1297. <HR>
  1298. <A NAME="info(java.lang.Object, java.lang.Throwable)"><!-- --></A><H3>
  1299. info</H3>
  1300. <PRE>
  1301. public void <B>info</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  1302. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</PRE>
  1303. <DL>
  1304. <DD>Log a message object with the <code>INFO</code> level including
  1305. the stack trace of the <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> <code>t</code> passed as
  1306. parameter.
  1307. <p>See <A HREF="../../../org/apache/log4j/Category.html#info(java.lang.Object)"><CODE>info(Object)</CODE></A> for more detailed information.
  1308. <P>
  1309. <DD><DL>
  1310. </DL>
  1311. </DD>
  1312. <DD><DL>
  1313. <DT><B>Parameters:</B><DD><CODE>message</CODE> - the message object to log.<DD><CODE>t</CODE> - the exception to log, including its stack trace.</DL>
  1314. </DD>
  1315. </DL>
  1316. <HR>
  1317. <A NAME="isAttached(org.apache.log4j.Appender)"><!-- --></A><H3>
  1318. isAttached</H3>
  1319. <PRE>
  1320. public boolean <B>isAttached</B>(<A HREF="../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A>&nbsp;appender)</PRE>
  1321. <DL>
  1322. <DD>Is the appender passed as parameter attached to this category?
  1323. <P>
  1324. <DD><DL>
  1325. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html#isAttached(org.apache.log4j.Appender)">isAttached</A></CODE> in interface <CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  1326. </DD>
  1327. <DD><DL>
  1328. </DL>
  1329. </DD>
  1330. </DL>
  1331. <HR>
  1332. <A NAME="isDebugEnabled()"><!-- --></A><H3>
  1333. isDebugEnabled</H3>
  1334. <PRE>
  1335. public boolean <B>isDebugEnabled</B>()</PRE>
  1336. <DL>
  1337. <DD>Check whether this category is enabled for the <code>DEBUG</code>
  1338. Level.
  1339. <p> This function is intended to lessen the computational cost of
  1340. disabled log debug statements.
  1341. <p> For some <code>cat</code> Category object, when you write,
  1342. <pre>
  1343. cat.debug("This is entry number: " + i );
  1344. </pre>
  1345. <p>You incur the cost constructing the message, concatenatiion in
  1346. this case, regardless of whether the message is logged or not.
  1347. <p>If you are worried about speed, then you should write
  1348. <pre>
  1349. if(cat.isDebugEnabled()) {
  1350. cat.debug("This is entry number: " + i );
  1351. }
  1352. </pre>
  1353. <p>This way you will not incur the cost of parameter
  1354. construction if debugging is disabled for <code>cat</code>. On
  1355. the other hand, if the <code>cat</code> is debug enabled, you
  1356. will incur the cost of evaluating whether the category is debug
  1357. enabled twice. Once in <code>isDebugEnabled</code> and once in
  1358. the <code>debug</code>. This is an insignificant overhead
  1359. since evaluating a category takes about 1%% of the time it
  1360. takes to actually log.
  1361. <P>
  1362. <DD><DL>
  1363. </DL>
  1364. </DD>
  1365. <DD><DL>
  1366. <DT><B>Returns:</B><DD>boolean - <code>true</code> if this category is debug
  1367. enabled, <code>false</code> otherwise.</DL>
  1368. </DD>
  1369. </DL>
  1370. <HR>
  1371. <A NAME="isEnabledFor(org.apache.log4j.Priority)"><!-- --></A><H3>
  1372. isEnabledFor</H3>
  1373. <PRE>
  1374. public boolean <B>isEnabledFor</B>(<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;level)</PRE>
  1375. <DL>
  1376. <DD>Check whether this category is enabled for a given <A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j"><CODE>Level</CODE></A> passed as parameter.
  1377. See also <A HREF="../../../org/apache/log4j/Category.html#isDebugEnabled()"><CODE>isDebugEnabled()</CODE></A>.
  1378. <P>
  1379. <DD><DL>
  1380. </DL>
  1381. </DD>
  1382. <DD><DL>
  1383. <DT><B>Returns:</B><DD>boolean True if this category is enabled for <code>level</code>.</DL>
  1384. </DD>
  1385. </DL>
  1386. <HR>
  1387. <A NAME="isInfoEnabled()"><!-- --></A><H3>
  1388. isInfoEnabled</H3>
  1389. <PRE>
  1390. public boolean <B>isInfoEnabled</B>()</PRE>
  1391. <DL>
  1392. <DD>Check whether this category is enabled for the info Level.
  1393. See also <A HREF="../../../org/apache/log4j/Category.html#isDebugEnabled()"><CODE>isDebugEnabled()</CODE></A>.
  1394. <P>
  1395. <DD><DL>
  1396. </DL>
  1397. </DD>
  1398. <DD><DL>
  1399. <DT><B>Returns:</B><DD>boolean - <code>true</code> if this category is enabled
  1400. for level info, <code>false</code> otherwise.</DL>
  1401. </DD>
  1402. </DL>
  1403. <HR>
  1404. <A NAME="l7dlog(org.apache.log4j.Priority, java.lang.String, java.lang.Throwable)"><!-- --></A><H3>
  1405. l7dlog</H3>
  1406. <PRE>
  1407. public void <B>l7dlog</B>(<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;priority,
  1408. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;key,
  1409. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</PRE>
  1410. <DL>
  1411. <DD>Log a localized message. The user supplied parameter
  1412. <code>key</code> is replaced by its localized version from the
  1413. resource bundle.
  1414. <P>
  1415. <DD><DL>
  1416. </DL>
  1417. </DD>
  1418. <DD><DL>
  1419. <DT><B>Since:</B></DT>
  1420. <DD>0.8.4</DD>
  1421. <DT><B>See Also:</B><DD><A HREF="../../../org/apache/log4j/Category.html#setResourceBundle(java.util.ResourceBundle)"><CODE>setResourceBundle(java.util.ResourceBundle)</CODE></A></DL>
  1422. </DD>
  1423. </DL>
  1424. <HR>
  1425. <A NAME="l7dlog(org.apache.log4j.Priority, java.lang.String, java.lang.Object[], java.lang.Throwable)"><!-- --></A><H3>
  1426. l7dlog</H3>
  1427. <PRE>
  1428. public void <B>l7dlog</B>(<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;priority,
  1429. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;key,
  1430. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;params,
  1431. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</PRE>
  1432. <DL>
  1433. <DD>Log a localized and parameterized message. First, the user
  1434. supplied <code>key</code> is searched in the resource
  1435. bundle. Next, the resulting pattern is formatted using
  1436. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/text/MessageFormat.html?is-external=true#format(java.lang.String, java.lang.Object...)" title="class or interface in java.text"><CODE>MessageFormat.format(String,Object[])</CODE></A> method with the
  1437. user supplied object array <code>params</code>.
  1438. <P>
  1439. <DD><DL>
  1440. </DL>
  1441. </DD>
  1442. <DD><DL>
  1443. <DT><B>Since:</B></DT>
  1444. <DD>0.8.4</DD>
  1445. </DL>
  1446. </DD>
  1447. </DL>
  1448. <HR>
  1449. <A NAME="log(org.apache.log4j.Priority, java.lang.Object, java.lang.Throwable)"><!-- --></A><H3>
  1450. log</H3>
  1451. <PRE>
  1452. public void <B>log</B>(<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;priority,
  1453. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  1454. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</PRE>
  1455. <DL>
  1456. <DD>This generic form is intended to be used by wrappers.
  1457. <P>
  1458. <DD><DL>
  1459. </DL>
  1460. </DD>
  1461. <DD><DL>
  1462. </DL>
  1463. </DD>
  1464. </DL>
  1465. <HR>
  1466. <A NAME="log(org.apache.log4j.Priority, java.lang.Object)"><!-- --></A><H3>
  1467. log</H3>
  1468. <PRE>
  1469. public void <B>log</B>(<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;priority,
  1470. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message)</PRE>
  1471. <DL>
  1472. <DD>This generic form is intended to be used by wrappers.
  1473. <P>
  1474. <DD><DL>
  1475. </DL>
  1476. </DD>
  1477. <DD><DL>
  1478. </DL>
  1479. </DD>
  1480. </DL>
  1481. <HR>
  1482. <A NAME="log(java.lang.String, org.apache.log4j.Priority, java.lang.Object, java.lang.Throwable)"><!-- --></A><H3>
  1483. log</H3>
  1484. <PRE>
  1485. public void <B>log</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;callerFQCN,
  1486. <A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;level,
  1487. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  1488. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</PRE>
  1489. <DL>
  1490. <DD>This is the most generic printing method. It is intended to be
  1491. invoked by <b>wrapper</b> classes.
  1492. <P>
  1493. <DD><DL>
  1494. </DL>
  1495. </DD>
  1496. <DD><DL>
  1497. <DT><B>Parameters:</B><DD><CODE>callerFQCN</CODE> - The wrapper class' fully qualified class name.<DD><CODE>level</CODE> - The level of the logging request.<DD><CODE>message</CODE> - The message of the logging request.<DD><CODE>t</CODE> - The throwable of the logging request, may be null.</DL>
  1498. </DD>
  1499. </DL>
  1500. <HR>
  1501. <A NAME="removeAllAppenders()"><!-- --></A><H3>
  1502. removeAllAppenders</H3>
  1503. <PRE>
  1504. public void <B>removeAllAppenders</B>()</PRE>
  1505. <DL>
  1506. <DD>Remove all previously added appenders from this Category
  1507. instance.
  1508. <p>This is useful when re-reading configuration information.
  1509. <P>
  1510. <DD><DL>
  1511. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html#removeAllAppenders()">removeAllAppenders</A></CODE> in interface <CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  1512. </DD>
  1513. <DD><DL>
  1514. </DL>
  1515. </DD>
  1516. </DL>
  1517. <HR>
  1518. <A NAME="removeAppender(org.apache.log4j.Appender)"><!-- --></A><H3>
  1519. removeAppender</H3>
  1520. <PRE>
  1521. public void <B>removeAppender</B>(<A HREF="../../../org/apache/log4j/Appender.html" title="interface in org.apache.log4j">Appender</A>&nbsp;appender)</PRE>
  1522. <DL>
  1523. <DD>Remove the appender passed as parameter form the list of appenders.
  1524. <P>
  1525. <DD><DL>
  1526. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html#removeAppender(org.apache.log4j.Appender)">removeAppender</A></CODE> in interface <CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  1527. </DD>
  1528. <DD><DL>
  1529. <DT><B>Since:</B></DT>
  1530. <DD>0.8.2</DD>
  1531. </DL>
  1532. </DD>
  1533. </DL>
  1534. <HR>
  1535. <A NAME="removeAppender(java.lang.String)"><!-- --></A><H3>
  1536. removeAppender</H3>
  1537. <PRE>
  1538. public void <B>removeAppender</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>&nbsp;name)</PRE>
  1539. <DL>
  1540. <DD>Remove the appender with the name passed as parameter form the
  1541. list of appenders.
  1542. <P>
  1543. <DD><DL>
  1544. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html#removeAppender(java.lang.String)">removeAppender</A></CODE> in interface <CODE><A HREF="../../../org/apache/log4j/spi/AppenderAttachable.html" title="interface in org.apache.log4j.spi">AppenderAttachable</A></CODE></DL>
  1545. </DD>
  1546. <DD><DL>
  1547. <DT><B>Since:</B></DT>
  1548. <DD>0.8.2</DD>
  1549. </DL>
  1550. </DD>
  1551. </DL>
  1552. <HR>
  1553. <A NAME="setAdditivity(boolean)"><!-- --></A><H3>
  1554. setAdditivity</H3>
  1555. <PRE>
  1556. public void <B>setAdditivity</B>(boolean&nbsp;additive)</PRE>
  1557. <DL>
  1558. <DD>Set the additivity flag for this Category instance.
  1559. <P>
  1560. <DD><DL>
  1561. </DL>
  1562. </DD>
  1563. <DD><DL>
  1564. <DT><B>Since:</B></DT>
  1565. <DD>0.8.1</DD>
  1566. </DL>
  1567. </DD>
  1568. </DL>
  1569. <HR>
  1570. <A NAME="setLevel(org.apache.log4j.Level)"><!-- --></A><H3>
  1571. setLevel</H3>
  1572. <PRE>
  1573. public void <B>setLevel</B>(<A HREF="../../../org/apache/log4j/Level.html" title="class in org.apache.log4j">Level</A>&nbsp;level)</PRE>
  1574. <DL>
  1575. <DD>Set the level of this Category. If you are passing any of
  1576. <code>Level.DEBUG</code>, <code>Level.INFO</code>,
  1577. <code>Level.WARN</code>, <code>Level.ERROR</code>,
  1578. <code>Level.FATAL</code> as a parameter, you need to case them as
  1579. Level.
  1580. <p>As in <pre> &nbsp;&nbsp;&nbsp;logger.setLevel((Level) Level.DEBUG); </pre>
  1581. <p>Null values are admitted.
  1582. <P>
  1583. <DD><DL>
  1584. </DL>
  1585. </DD>
  1586. <DD><DL>
  1587. </DL>
  1588. </DD>
  1589. </DL>
  1590. <HR>
  1591. <A NAME="setPriority(org.apache.log4j.Priority)"><!-- --></A><H3>
  1592. setPriority</H3>
  1593. <PRE>
  1594. public void <B>setPriority</B>(<A HREF="../../../org/apache/log4j/Priority.html" title="class in org.apache.log4j">Priority</A>&nbsp;priority)</PRE>
  1595. <DL>
  1596. <DD><B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/Category.html#setLevel(org.apache.log4j.Level)"><CODE>setLevel(org.apache.log4j.Level)</CODE></A> instead.</I>
  1597. <P>
  1598. <DD>Set the level of this Category.
  1599. <p>Null values are admitted.
  1600. <P>
  1601. <DD><DL>
  1602. </DL>
  1603. </DD>
  1604. <DD><DL>
  1605. </DL>
  1606. </DD>
  1607. </DL>
  1608. <HR>
  1609. <A NAME="setResourceBundle(java.util.ResourceBundle)"><!-- --></A><H3>
  1610. setResourceBundle</H3>
  1611. <PRE>
  1612. public void <B>setResourceBundle</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</A>&nbsp;bundle)</PRE>
  1613. <DL>
  1614. <DD>Set the resource bundle to be used with localized logging
  1615. methods <A HREF="../../../org/apache/log4j/Category.html#l7dlog(org.apache.log4j.Priority, java.lang.String, java.lang.Throwable)"><CODE>l7dlog(Priority,String,Throwable)</CODE></A> and <A HREF="../../../org/apache/log4j/Category.html#l7dlog(org.apache.log4j.Priority, java.lang.String, java.lang.Object[], java.lang.Throwable)"><CODE>l7dlog(Priority,String,Object[],Throwable)</CODE></A>.
  1616. <P>
  1617. <DD><DL>
  1618. </DL>
  1619. </DD>
  1620. <DD><DL>
  1621. <DT><B>Since:</B></DT>
  1622. <DD>0.8.4</DD>
  1623. </DL>
  1624. </DD>
  1625. </DL>
  1626. <HR>
  1627. <A NAME="shutdown()"><!-- --></A><H3>
  1628. shutdown</H3>
  1629. <PRE>
  1630. public static void <B>shutdown</B>()</PRE>
  1631. <DL>
  1632. <DD><B>Deprecated.</B>&nbsp;<I>Please use <A HREF="../../../org/apache/log4j/LogManager.html#shutdown()"><CODE>LogManager.shutdown()</CODE></A> instead.</I>
  1633. <P>
  1634. <DD>Calling this method will <em>safely</em> close and remove all
  1635. appenders in all the categories including root contained in the
  1636. default hierachy.
  1637. <p>Some appenders such as <A HREF="../../../org/apache/log4j/net/SocketAppender.html" title="class in org.apache.log4j.net"><CODE>SocketAppender</CODE></A>
  1638. and <A HREF="../../../org/apache/log4j/AsyncAppender.html" title="class in org.apache.log4j"><CODE>AsyncAppender</CODE></A> need to be closed before the
  1639. application exists. Otherwise, pending logging events might be
  1640. lost.
  1641. <p>The <code>shutdown</code> method is careful to close nested
  1642. appenders before closing regular appenders. This is allows
  1643. configurations where a regular appender is attached to a category
  1644. and again to a nested appender.
  1645. <P>
  1646. <DD><DL>
  1647. </DL>
  1648. </DD>
  1649. <DD><DL>
  1650. <DT><B>Since:</B></DT>
  1651. <DD>1.0</DD>
  1652. </DL>
  1653. </DD>
  1654. </DL>
  1655. <HR>
  1656. <A NAME="warn(java.lang.Object)"><!-- --></A><H3>
  1657. warn</H3>
  1658. <PRE>
  1659. public void <B>warn</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message)</PRE>
  1660. <DL>
  1661. <DD>Log a message object with the <A HREF="../../../org/apache/log4j/Level.html#WARN"><CODE>WARN</CODE></A> Level.
  1662. <p>This method first checks if this category is <code>WARN</code>
  1663. enabled by comparing the level of this category with <A HREF="../../../org/apache/log4j/Level.html#WARN"><CODE>WARN</CODE></A> Level. If the category is <code>WARN</code>
  1664. enabled, then it converts the message object passed as parameter
  1665. to a string by invoking the appropriate
  1666. <A HREF="../../../org/apache/log4j/or/ObjectRenderer.html" title="interface in org.apache.log4j.or"><CODE>ObjectRenderer</CODE></A>. It
  1667. proceeds to call all the registered appenders in this category and
  1668. also higher in the hieararchy depending on the value of the
  1669. additivity flag.
  1670. <p><b>WARNING</b> Note that passing a <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> to this
  1671. method will print the name of the Throwable but no stack trace. To
  1672. print a stack trace use the <A HREF="../../../org/apache/log4j/Category.html#warn(java.lang.Object, java.lang.Throwable)"><CODE>warn(Object, Throwable)</CODE></A> form
  1673. instead. <p>
  1674. <P>
  1675. <DD><DL>
  1676. </DL>
  1677. </DD>
  1678. <DD><DL>
  1679. <DT><B>Parameters:</B><DD><CODE>message</CODE> - the message object to log.</DL>
  1680. </DD>
  1681. </DL>
  1682. <HR>
  1683. <A NAME="warn(java.lang.Object, java.lang.Throwable)"><!-- --></A><H3>
  1684. warn</H3>
  1685. <PRE>
  1686. public void <B>warn</B>(<A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>&nbsp;message,
  1687. <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</A>&nbsp;t)</PRE>
  1688. <DL>
  1689. <DD>Log a message with the <code>WARN</code> level including the
  1690. stack trace of the <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang"><CODE>Throwable</CODE></A> <code>t</code> passed as
  1691. parameter.
  1692. <p>See <A HREF="../../../org/apache/log4j/Category.html#warn(java.lang.Object)"><CODE>warn(Object)</CODE></A> for more detailed information.
  1693. <P>
  1694. <DD><DL>
  1695. </DL>
  1696. </DD>
  1697. <DD><DL>
  1698. <DT><B>Parameters:</B><DD><CODE>message</CODE> - the message object to log.<DD><CODE>t</CODE> - the exception to log, including its stack trace.</DL>
  1699. </DD>
  1700. </DL>
  1701. <!-- ========= END OF CLASS DATA ========= -->
  1702. <HR>
  1703. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  1704. <A NAME="navbar_bottom"><!-- --></A>
  1705. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  1706. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  1707. <TR>
  1708. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  1709. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  1710. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  1711. <TR ALIGN="center" VALIGN="top">
  1712. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  1713. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  1714. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  1715. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Category.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  1716. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  1717. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  1718. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  1719. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  1720. </TR>
  1721. </TABLE>
  1722. </TD>
  1723. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  1724. </EM>
  1725. </TD>
  1726. </TR>
  1727. <TR>
  1728. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  1729. &nbsp;<A HREF="../../../org/apache/log4j/BasicConfigurator.html" title="class in org.apache.log4j"><B>PREV CLASS</B></A>&nbsp;
  1730. &nbsp;<A HREF="../../../org/apache/log4j/ConsoleAppender.html" title="class in org.apache.log4j"><B>NEXT CLASS</B></A></FONT></TD>
  1731. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  1732. <A HREF="../../../index.html?org/apache/log4j/Category.html" target="_top"><B>FRAMES</B></A> &nbsp;
  1733. &nbsp;<A HREF="Category.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  1734. &nbsp;<SCRIPT type="text/javascript">
  1735. <!--
  1736. if(window==top) {
  1737. document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
  1738. }
  1739. //-->
  1740. </SCRIPT>
  1741. <NOSCRIPT>
  1742. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  1743. </NOSCRIPT>
  1744. </FONT></TD>
  1745. </TR>
  1746. <TR>
  1747. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  1748. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  1749. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  1750. DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  1751. </TR>
  1752. </TABLE>
  1753. <A NAME="skip-navbar_bottom"></A>
  1754. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  1755. <HR>
  1756. Copyright &#169; 1999-2010 <a href="http://www.apache.org">Apache Software Foundation</a>. All Rights Reserved.
  1757. </BODY>
  1758. </HTML>