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