/usr/share/doc/libcommons-logging-java/api/org/apache/commons/logging/impl/LogFactoryImpl.html is in libcommons-logging-java-doc 1.1.3-1.
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 | <!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 (version 1.7.0_21) on Sun May 26 19:41:53 UTC 2013 -->
<title>LogFactoryImpl (Logging Wrapper Library (Version 1.1.3))</title>
<meta name="date" content="2013-05-26">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="LogFactoryImpl (Logging Wrapper Library (Version 1.1.3))";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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="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>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/logging/impl/Log4JLogger.html" title="class in org.apache.commons.logging.impl"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/logging/impl/LogKitLogger.html" title="class in org.apache.commons.logging.impl"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/logging/impl/LogFactoryImpl.html" target="_top">Frames</a></li>
<li><a href="LogFactoryImpl.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.commons.logging.impl</div>
<h2 title="Class LogFactoryImpl" class="title">Class LogFactoryImpl</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging">org.apache.commons.logging.LogFactory</a></li>
<li>
<ul class="inheritance">
<li>org.apache.commons.logging.impl.LogFactoryImpl</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="strong">LogFactoryImpl</span>
extends <a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging">LogFactory</a></pre>
<div class="block">Concrete subclass of <a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging"><code>LogFactory</code></a> that implements the
following algorithm to dynamically select a logging implementation
class to instantiate a wrapper for:
<ul>
<li>Use a factory configuration attribute named
<code>org.apache.commons.logging.Log</code> to identify the
requested implementation class.</li>
<li>Use the <code>org.apache.commons.logging.Log</code> system property
to identify the requested implementation class.</li>
<li>If <em>Log4J</em> is available, return an instance of
<code>org.apache.commons.logging.impl.Log4JLogger</code>.</li>
<li>If <em>JDK 1.4 or later</em> is available, return an instance of
<code>org.apache.commons.logging.impl.Jdk14Logger</code>.</li>
<li>Otherwise, return an instance of
<code>org.apache.commons.logging.impl.SimpleLog</code>.</li>
</ul>
<p>
If the selected <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a> implementation class has a
<code>setLogFactory()</code> method that accepts a <a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging"><code>LogFactory</code></a>
parameter, this method will be called on each newly created instance
to identify the associated factory. This makes factory configuration
attributes available to the Log instance, if it so desires.
<p>
This factory will remember previously created <code>Log</code> instances
for the same name, and will return them on repeated requests to the
<code>getInstance()</code> method.</div>
<dl><dt><span class="strong">Version:</span></dt>
<dd>$Id: LogFactoryImpl.java 1449064 2013-02-22 14:49:22Z tn $</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="overviewSummary" 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>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#ALLOW_FLAWED_CONTEXT_PROPERTY">ALLOW_FLAWED_CONTEXT_PROPERTY</a></strong></code>
<div class="block">The name (<code>org.apache.commons.logging.Log.allowFlawedContext</code>)
of the system property which can be set true/false to
determine system behaviour when a bad context-classloader is encountered.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#ALLOW_FLAWED_DISCOVERY_PROPERTY">ALLOW_FLAWED_DISCOVERY_PROPERTY</a></strong></code>
<div class="block">The name (<code>org.apache.commons.logging.Log.allowFlawedDiscovery</code>)
of the system property which can be set true/false to
determine system behaviour when a bad logging adapter class is
encountered during logging discovery.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#ALLOW_FLAWED_HIERARCHY_PROPERTY">ALLOW_FLAWED_HIERARCHY_PROPERTY</a></strong></code>
<div class="block">The name (<code>org.apache.commons.logging.Log.allowFlawedHierarchy</code>)
of the system property which can be set true/false to
determine system behaviour when a logging adapter class is
encountered which has bound to the wrong Log class implementation.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#allowFlawedContext">allowFlawedContext</a></strong></code>
<div class="block">See getBaseClassLoader and initConfiguration.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#allowFlawedDiscovery">allowFlawedDiscovery</a></strong></code>
<div class="block">See handleFlawedDiscovery and initConfiguration.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#allowFlawedHierarchy">allowFlawedHierarchy</a></strong></code>
<div class="block">See handleFlawedHierarchy and initConfiguration.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.util.Hashtable</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#attributes">attributes</a></strong></code>
<div class="block">Configuration attributes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static java.lang.String[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#classesToDiscover">classesToDiscover</a></strong></code>
<div class="block">The names of classes that will be tried (in order) as logging
adapters.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#diagnosticPrefix">diagnosticPrefix</a></strong></code>
<div class="block">The string prefixed to every message output by the logDiagnostic method.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.util.Hashtable</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#instances">instances</a></strong></code>
<div class="block">The <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a> instances that have
already been created, keyed by logger name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#LOG_PROPERTY">LOG_PROPERTY</a></strong></code>
<div class="block">The name (<code>org.apache.commons.logging.Log</code>) of the system
property identifying our <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a> implementation class.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#LOG_PROPERTY_OLD">LOG_PROPERTY_OLD</a></strong></code>
<div class="block">The deprecated system property used for backwards compatibility with
old versions of JCL.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#logClassName">logClassName</a></strong></code>
<div class="block">Name of the class implementing the Log interface.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.lang.reflect.Constructor</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#logConstructor">logConstructor</a></strong></code>
<div class="block">The one-argument constructor of the
<a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a>
implementation class that will be used to create new instances.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.lang.Class[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#logConstructorSignature">logConstructorSignature</a></strong></code>
<div class="block">The signature of the Constructor to be used.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#LOGGING_IMPL_JDK14_LOGGER">LOGGING_IMPL_JDK14_LOGGER</a></strong></code>
<div class="block">Jdk14Logger class name</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#LOGGING_IMPL_LOG4J_LOGGER">LOGGING_IMPL_LOG4J_LOGGER</a></strong></code>
<div class="block">Log4JLogger class name</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#LOGGING_IMPL_LUMBERJACK_LOGGER">LOGGING_IMPL_LUMBERJACK_LOGGER</a></strong></code>
<div class="block">Jdk13LumberjackLogger class name</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#LOGGING_IMPL_SIMPLE_LOGGER">LOGGING_IMPL_SIMPLE_LOGGER</a></strong></code>
<div class="block">SimpleLog class name</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.lang.reflect.Method</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#logMethod">logMethod</a></strong></code>
<div class="block">The one-argument <code>setLogFactory</code> method of the selected
<a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a> method, if it exists.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.lang.Class[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#logMethodSignature">logMethodSignature</a></strong></code>
<div class="block">The signature of the <code>setLogFactory</code> method to be used.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#PKG_IMPL">PKG_IMPL</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#PKG_LEN">PKG_LEN</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#useTCCL">useTCCL</a></strong></code>
<div class="block">Determines whether logging classes should be loaded using the thread-context
classloader, or via the classloader that loaded this LogFactoryImpl class.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.commons.logging.LogFactory">
<!-- -->
</a>
<h3>Fields inherited from class org.apache.commons.logging.<a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging">LogFactory</a></h3>
<code><a href="../../../../../org/apache/commons/logging/LogFactory.html#DIAGNOSTICS_DEST_PROPERTY">DIAGNOSTICS_DEST_PROPERTY</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#factories">factories</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#FACTORY_DEFAULT">FACTORY_DEFAULT</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#FACTORY_PROPERTIES">FACTORY_PROPERTIES</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#FACTORY_PROPERTY">FACTORY_PROPERTY</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#HASHTABLE_IMPLEMENTATION_PROPERTY">HASHTABLE_IMPLEMENTATION_PROPERTY</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#nullClassLoaderFactory">nullClassLoaderFactory</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#PRIORITY_KEY">PRIORITY_KEY</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#SERVICE_ID">SERVICE_ID</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#TCCL_KEY">TCCL_KEY</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" 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="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#LogFactoryImpl()">LogFactoryImpl</a></strong>()</code>
<div class="block">Public no-arguments constructor required by the lookup mechanism.</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="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging">Log</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#createLogFromClass(java.lang.String, java.lang.String, boolean)">createLogFromClass</a></strong>(java.lang.String logAdapterClassName,
java.lang.String logCategory,
boolean affectState)</code>
<div class="block">Attempts to load the given class, find a suitable constructor,
and instantiate an instance of Log.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging">Log</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#discoverLogImplementation(java.lang.String)">discoverLogImplementation</a></strong>(java.lang.String logCategory)</code>
<div class="block">Attempts to create a Log instance for the given category name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#findUserSpecifiedLogClassName()">findUserSpecifiedLogClassName</a></strong>()</code>
<div class="block">Checks system properties and the attribute map for
a Log implementation specified by the user under the
property names <a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#LOG_PROPERTY"><code>LOG_PROPERTY</code></a> or <a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#LOG_PROPERTY_OLD"><code>LOG_PROPERTY_OLD</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getAttribute(java.lang.String)">getAttribute</a></strong>(java.lang.String name)</code>
<div class="block">Return the configuration attribute with the specified name (if any),
or <code>null</code> if there is no such attribute.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getAttributeNames()">getAttributeNames</a></strong>()</code>
<div class="block">Return an array containing the names of all currently defined
configuration attributes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private java.lang.ClassLoader</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getBaseClassLoader()">getBaseClassLoader</a></strong>()</code>
<div class="block">Return the classloader from which we should try to load the logging
adapter classes.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getBooleanConfiguration(java.lang.String, boolean)">getBooleanConfiguration</a></strong>(java.lang.String key,
boolean dflt)</code>
<div class="block">Get the setting for the user-configurable behaviour specified by key.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static java.lang.ClassLoader</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getClassLoader(java.lang.Class)">getClassLoader</a></strong>(java.lang.Class clazz)</code>
<div class="block">Workaround for bug in Java1.2; in theory this method is not needed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getConfigurationValue(java.lang.String)">getConfigurationValue</a></strong>(java.lang.String property)</code>
<div class="block">Attempt to find an attribute (see method setAttribute) or a
system property with the provided name and return its value.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static java.lang.ClassLoader</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getContextClassLoader()">getContextClassLoader</a></strong>()</code>
<div class="block">Gets the context classloader.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static java.lang.ClassLoader</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getContextClassLoaderInternal()">getContextClassLoaderInternal</a></strong>()</code>
<div class="block">Calls LogFactory.directGetContextClassLoader under the control of an
AccessController class.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging">Log</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getInstance(java.lang.Class)">getInstance</a></strong>(java.lang.Class clazz)</code>
<div class="block">Convenience method to derive a name from the specified class and
call <code>getInstance(String)</code> with it.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging">Log</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getInstance(java.lang.String)">getInstance</a></strong>(java.lang.String name)</code>
<div class="block">Construct (if necessary) and return a <code>Log</code> instance,
using the factory's current set of configuration attributes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getLogClassName()">getLogClassName</a></strong>()</code>
<div class="block"><strong>Deprecated.</strong>
<div class="block"><i>Never invoked by this class; subclasses should not assume
it will be.</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected java.lang.reflect.Constructor</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getLogConstructor()">getLogConstructor</a></strong>()</code>
<div class="block"><strong>Deprecated.</strong>
<div class="block"><i>Never invoked by this class; subclasses should not assume
it will be.</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private java.lang.ClassLoader</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getLowestClassLoader(java.lang.ClassLoader, java.lang.ClassLoader)">getLowestClassLoader</a></strong>(java.lang.ClassLoader c1,
java.lang.ClassLoader c2)</code>
<div class="block">Given two related classloaders, return the one which is a child of
the other.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private java.lang.ClassLoader</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getParentClassLoader(java.lang.ClassLoader)">getParentClassLoader</a></strong>(java.lang.ClassLoader cl)</code>
<div class="block">Fetch the parent classloader of a specified classloader.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#getSystemProperty(java.lang.String, java.lang.String)">getSystemProperty</a></strong>(java.lang.String key,
java.lang.String def)</code>
<div class="block">Read the specified system property, using an AccessController so that
the property can be read if JCL has been granted the appropriate
security rights even if the calling code has not.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#handleFlawedDiscovery(java.lang.String, java.lang.ClassLoader, java.lang.Throwable)">handleFlawedDiscovery</a></strong>(java.lang.String logAdapterClassName,
java.lang.ClassLoader classLoader,
java.lang.Throwable discoveryFlaw)</code>
<div class="block">Generates an internal diagnostic logging of the discovery failure and
then throws a <code>LogConfigurationException</code> that wraps
the passed <code>Throwable</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#handleFlawedHierarchy(java.lang.ClassLoader, java.lang.Class)">handleFlawedHierarchy</a></strong>(java.lang.ClassLoader badClassLoader,
java.lang.Class badClass)</code>
<div class="block">Report a problem loading the log adapter, then either return
(if the situation is considered recoverable) or throw a
LogConfigurationException.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#informUponSimilarName(java.lang.StringBuffer, java.lang.String, java.lang.String)">informUponSimilarName</a></strong>(java.lang.StringBuffer messageBuffer,
java.lang.String name,
java.lang.String candidate)</code>
<div class="block">Appends message if the given name is similar to the candidate.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#initConfiguration()">initConfiguration</a></strong>()</code>
<div class="block">Initialize a number of variables that control the behaviour of this
class and that can be tweaked by the user.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#initDiagnostics()">initDiagnostics</a></strong>()</code>
<div class="block">Calculate and cache a string that uniquely identifies this instance,
including which classloader the object was loaded from.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#isDiagnosticsEnabled()">isDiagnosticsEnabled</a></strong>()</code>
<div class="block">Workaround for bug in Java1.2; in theory this method is not needed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#isJdk13LumberjackAvailable()">isJdk13LumberjackAvailable</a></strong>()</code>
<div class="block"><strong>Deprecated.</strong>
<div class="block"><i>Never invoked by this class; subclasses should not assume
it will be.</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#isJdk14Available()">isJdk14Available</a></strong>()</code>
<div class="block"><strong>Deprecated.</strong>
<div class="block"><i>Never invoked by this class; subclasses should not assume
it will be.</i></div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#isLog4JAvailable()">isLog4JAvailable</a></strong>()</code>
<div class="block"><strong>Deprecated.</strong>
<div class="block"><i>Never invoked by this class; subclasses should not assume
it will be.</i></div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#isLogLibraryAvailable(java.lang.String, java.lang.String)">isLogLibraryAvailable</a></strong>(java.lang.String name,
java.lang.String classname)</code>
<div class="block">Utility method to check whether a particular logging library is
present and available for use.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#logDiagnostic(java.lang.String)">logDiagnostic</a></strong>(java.lang.String msg)</code>
<div class="block">Output a diagnostic message to a user-specified destination (if the
user has enabled diagnostic logging).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging">Log</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#newInstance(java.lang.String)">newInstance</a></strong>(java.lang.String name)</code>
<div class="block">Create and return a new <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a>
instance for the specified name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#release()">release</a></strong>()</code>
<div class="block">Release any internal references to previously created
<a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a>
instances returned by this factory.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#removeAttribute(java.lang.String)">removeAttribute</a></strong>(java.lang.String name)</code>
<div class="block">Remove any configuration attribute associated with the specified name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#setAttribute(java.lang.String, java.lang.Object)">setAttribute</a></strong>(java.lang.String name,
java.lang.Object value)</code>
<div class="block">Set the configuration attribute with the specified name.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.commons.logging.LogFactory">
<!-- -->
</a>
<h3>Methods inherited from class org.apache.commons.logging.<a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging">LogFactory</a></h3>
<code><a href="../../../../../org/apache/commons/logging/LogFactory.html#createFactory(java.lang.String, java.lang.ClassLoader)">createFactory</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#directGetContextClassLoader()">directGetContextClassLoader</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#getFactory()">getFactory</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#getLog(java.lang.Class)">getLog</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#getLog(java.lang.String)">getLog</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#handleThrowable(java.lang.Throwable)">handleThrowable</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#logRawDiagnostic(java.lang.String)">logRawDiagnostic</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#newFactory(java.lang.String, java.lang.ClassLoader)">newFactory</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#newFactory(java.lang.String, java.lang.ClassLoader, java.lang.ClassLoader)">newFactory</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#objectId(java.lang.Object)">objectId</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#release(java.lang.ClassLoader)">release</a>, <a href="../../../../../org/apache/commons/logging/LogFactory.html#releaseAll()">releaseAll</a></code></li>
</ul>
<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="LOGGING_IMPL_LOG4J_LOGGER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOGGING_IMPL_LOG4J_LOGGER</h4>
<pre>private static final java.lang.String LOGGING_IMPL_LOG4J_LOGGER</pre>
<div class="block">Log4JLogger class name</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.logging.impl.LogFactoryImpl.LOGGING_IMPL_LOG4J_LOGGER">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="LOGGING_IMPL_JDK14_LOGGER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOGGING_IMPL_JDK14_LOGGER</h4>
<pre>private static final java.lang.String LOGGING_IMPL_JDK14_LOGGER</pre>
<div class="block">Jdk14Logger class name</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.logging.impl.LogFactoryImpl.LOGGING_IMPL_JDK14_LOGGER">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="LOGGING_IMPL_LUMBERJACK_LOGGER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOGGING_IMPL_LUMBERJACK_LOGGER</h4>
<pre>private static final java.lang.String LOGGING_IMPL_LUMBERJACK_LOGGER</pre>
<div class="block">Jdk13LumberjackLogger class name</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.logging.impl.LogFactoryImpl.LOGGING_IMPL_LUMBERJACK_LOGGER">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="LOGGING_IMPL_SIMPLE_LOGGER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOGGING_IMPL_SIMPLE_LOGGER</h4>
<pre>private static final java.lang.String LOGGING_IMPL_SIMPLE_LOGGER</pre>
<div class="block">SimpleLog class name</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.logging.impl.LogFactoryImpl.LOGGING_IMPL_SIMPLE_LOGGER">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="PKG_IMPL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PKG_IMPL</h4>
<pre>private static final java.lang.String PKG_IMPL</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.logging.impl.LogFactoryImpl.PKG_IMPL">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="PKG_LEN">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PKG_LEN</h4>
<pre>private static final int PKG_LEN</pre>
</li>
</ul>
<a name="LOG_PROPERTY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOG_PROPERTY</h4>
<pre>public static final java.lang.String LOG_PROPERTY</pre>
<div class="block">The name (<code>org.apache.commons.logging.Log</code>) of the system
property identifying our <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a> implementation class.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.logging.impl.LogFactoryImpl.LOG_PROPERTY">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="LOG_PROPERTY_OLD">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LOG_PROPERTY_OLD</h4>
<pre>protected static final java.lang.String LOG_PROPERTY_OLD</pre>
<div class="block">The deprecated system property used for backwards compatibility with
old versions of JCL.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.logging.impl.LogFactoryImpl.LOG_PROPERTY_OLD">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ALLOW_FLAWED_CONTEXT_PROPERTY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ALLOW_FLAWED_CONTEXT_PROPERTY</h4>
<pre>public static final java.lang.String ALLOW_FLAWED_CONTEXT_PROPERTY</pre>
<div class="block">The name (<code>org.apache.commons.logging.Log.allowFlawedContext</code>)
of the system property which can be set true/false to
determine system behaviour when a bad context-classloader is encountered.
When set to false, a LogConfigurationException is thrown if
LogFactoryImpl is loaded via a child classloader of the TCCL (this
should never happen in sane systems).
Default behaviour: true (tolerates bad context classloaders)
See also method setAttribute.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.logging.impl.LogFactoryImpl.ALLOW_FLAWED_CONTEXT_PROPERTY">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ALLOW_FLAWED_DISCOVERY_PROPERTY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ALLOW_FLAWED_DISCOVERY_PROPERTY</h4>
<pre>public static final java.lang.String ALLOW_FLAWED_DISCOVERY_PROPERTY</pre>
<div class="block">The name (<code>org.apache.commons.logging.Log.allowFlawedDiscovery</code>)
of the system property which can be set true/false to
determine system behaviour when a bad logging adapter class is
encountered during logging discovery. When set to false, an
exception will be thrown and the app will fail to start. When set
to true, discovery will continue (though the user might end up
with a different logging implementation than they expected).
<p>
Default behaviour: true (tolerates bad logging adapters)
See also method setAttribute.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.logging.impl.LogFactoryImpl.ALLOW_FLAWED_DISCOVERY_PROPERTY">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ALLOW_FLAWED_HIERARCHY_PROPERTY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ALLOW_FLAWED_HIERARCHY_PROPERTY</h4>
<pre>public static final java.lang.String ALLOW_FLAWED_HIERARCHY_PROPERTY</pre>
<div class="block">The name (<code>org.apache.commons.logging.Log.allowFlawedHierarchy</code>)
of the system property which can be set true/false to
determine system behaviour when a logging adapter class is
encountered which has bound to the wrong Log class implementation.
When set to false, an exception will be thrown and the app will fail
to start. When set to true, discovery will continue (though the user
might end up with a different logging implementation than they expected).
<p>
Default behaviour: true (tolerates bad Log class hierarchy)
See also method setAttribute.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.commons.logging.impl.LogFactoryImpl.ALLOW_FLAWED_HIERARCHY_PROPERTY">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="classesToDiscover">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>classesToDiscover</h4>
<pre>private static final java.lang.String[] classesToDiscover</pre>
<div class="block">The names of classes that will be tried (in order) as logging
adapters. Each class is expected to implement the Log interface,
and to throw NoClassDefFound or ExceptionInInitializerError when
loaded if the underlying logging library is not available. Any
other error indicates that the underlying logging library is available
but broken/unusable for some reason.</div>
</li>
</ul>
<a name="useTCCL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>useTCCL</h4>
<pre>private boolean useTCCL</pre>
<div class="block">Determines whether logging classes should be loaded using the thread-context
classloader, or via the classloader that loaded this LogFactoryImpl class.</div>
</li>
</ul>
<a name="diagnosticPrefix">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>diagnosticPrefix</h4>
<pre>private java.lang.String diagnosticPrefix</pre>
<div class="block">The string prefixed to every message output by the logDiagnostic method.</div>
</li>
</ul>
<a name="attributes">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>attributes</h4>
<pre>protected java.util.Hashtable attributes</pre>
<div class="block">Configuration attributes.</div>
</li>
</ul>
<a name="instances">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>instances</h4>
<pre>protected java.util.Hashtable instances</pre>
<div class="block">The <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a> instances that have
already been created, keyed by logger name.</div>
</li>
</ul>
<a name="logClassName">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logClassName</h4>
<pre>private java.lang.String logClassName</pre>
<div class="block">Name of the class implementing the Log interface.</div>
</li>
</ul>
<a name="logConstructor">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logConstructor</h4>
<pre>protected java.lang.reflect.Constructor logConstructor</pre>
<div class="block">The one-argument constructor of the
<a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a>
implementation class that will be used to create new instances.
This value is initialized by <code>getLogConstructor()</code>,
and then returned repeatedly.</div>
</li>
</ul>
<a name="logConstructorSignature">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logConstructorSignature</h4>
<pre>protected java.lang.Class[] logConstructorSignature</pre>
<div class="block">The signature of the Constructor to be used.</div>
</li>
</ul>
<a name="logMethod">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logMethod</h4>
<pre>protected java.lang.reflect.Method logMethod</pre>
<div class="block">The one-argument <code>setLogFactory</code> method of the selected
<a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a> method, if it exists.</div>
</li>
</ul>
<a name="logMethodSignature">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logMethodSignature</h4>
<pre>protected java.lang.Class[] logMethodSignature</pre>
<div class="block">The signature of the <code>setLogFactory</code> method to be used.</div>
</li>
</ul>
<a name="allowFlawedContext">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allowFlawedContext</h4>
<pre>private boolean allowFlawedContext</pre>
<div class="block">See getBaseClassLoader and initConfiguration.</div>
</li>
</ul>
<a name="allowFlawedDiscovery">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>allowFlawedDiscovery</h4>
<pre>private boolean allowFlawedDiscovery</pre>
<div class="block">See handleFlawedDiscovery and initConfiguration.</div>
</li>
</ul>
<a name="allowFlawedHierarchy">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>allowFlawedHierarchy</h4>
<pre>private boolean allowFlawedHierarchy</pre>
<div class="block">See handleFlawedHierarchy and initConfiguration.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="LogFactoryImpl()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>LogFactoryImpl</h4>
<pre>public LogFactoryImpl()</pre>
<div class="block">Public no-arguments constructor required by the lookup mechanism.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getAttribute(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAttribute</h4>
<pre>public java.lang.Object getAttribute(java.lang.String name)</pre>
<div class="block">Return the configuration attribute with the specified name (if any),
or <code>null</code> if there is no such attribute.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogFactory.html#getAttribute(java.lang.String)">getAttribute</a></code> in class <code><a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging">LogFactory</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Name of the attribute to return</dd></dl>
</li>
</ul>
<a name="getAttributeNames()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAttributeNames</h4>
<pre>public java.lang.String[] getAttributeNames()</pre>
<div class="block">Return an array containing the names of all currently defined
configuration attributes. If there are no such attributes, a zero
length array is returned.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogFactory.html#getAttributeNames()">getAttributeNames</a></code> in class <code><a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging">LogFactory</a></code></dd>
</dl>
</li>
</ul>
<a name="getInstance(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInstance</h4>
<pre>public <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging">Log</a> getInstance(java.lang.Class clazz)
throws <a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></pre>
<div class="block">Convenience method to derive a name from the specified class and
call <code>getInstance(String)</code> with it.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogFactory.html#getInstance(java.lang.Class)">getInstance</a></code> in class <code><a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging">LogFactory</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>clazz</code> - Class for which a suitable Log name will be derived</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></code> - if a suitable <code>Log</code>
instance cannot be returned</dd></dl>
</li>
</ul>
<a name="getInstance(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getInstance</h4>
<pre>public <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging">Log</a> getInstance(java.lang.String name)
throws <a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></pre>
<div class="block"><p>Construct (if necessary) and return a <code>Log</code> instance,
using the factory's current set of configuration attributes.</p>
<p><strong>NOTE</strong> - Depending upon the implementation of
the <code>LogFactory</code> you are using, the <code>Log</code>
instance you are returned may or may not be local to the current
application, and may or may not be returned again on a subsequent
call with the same name argument.</p></div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogFactory.html#getInstance(java.lang.String)">getInstance</a></code> in class <code><a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging">LogFactory</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Logical name of the <code>Log</code> instance to be
returned (the meaning of this name is only known to the underlying
logging implementation that is being wrapped)</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></code> - if a suitable <code>Log</code>
instance cannot be returned</dd></dl>
</li>
</ul>
<a name="release()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>release</h4>
<pre>public void release()</pre>
<div class="block">Release any internal references to previously created
<a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a>
instances returned by this factory. This is useful in environments
like servlet containers, which implement application reloading by
throwing away a ClassLoader. Dangling references to objects in that
class loader would prevent garbage collection.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogFactory.html#release()">release</a></code> in class <code><a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging">LogFactory</a></code></dd>
</dl>
</li>
</ul>
<a name="removeAttribute(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeAttribute</h4>
<pre>public void removeAttribute(java.lang.String name)</pre>
<div class="block">Remove any configuration attribute associated with the specified name.
If there is no such attribute, no action is taken.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogFactory.html#removeAttribute(java.lang.String)">removeAttribute</a></code> in class <code><a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging">LogFactory</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Name of the attribute to remove</dd></dl>
</li>
</ul>
<a name="setAttribute(java.lang.String, java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setAttribute</h4>
<pre>public void setAttribute(java.lang.String name,
java.lang.Object value)</pre>
<div class="block">Set the configuration attribute with the specified name. Calling
this with a <code>null</code> value is equivalent to calling
<code>removeAttribute(name)</code>.
<p>
This method can be used to set logging configuration programmatically
rather than via system properties. It can also be used in code running
within a container (such as a webapp) to configure behaviour on a
per-component level instead of globally as system properties would do.
To use this method instead of a system property, call
<pre>
LogFactory.getFactory().setAttribute(...)
</pre>
This must be done before the first Log object is created; configuration
changes after that point will be ignored.
<p>
This method is also called automatically if LogFactory detects a
commons-logging.properties file; every entry in that file is set
automatically as an attribute here.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogFactory.html#setAttribute(java.lang.String, java.lang.Object)">setAttribute</a></code> in class <code><a href="../../../../../org/apache/commons/logging/LogFactory.html" title="class in org.apache.commons.logging">LogFactory</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Name of the attribute to set</dd><dd><code>value</code> - Value of the attribute to set, or <code>null</code>
to remove any setting for this attribute</dd></dl>
</li>
</ul>
<a name="getContextClassLoader()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getContextClassLoader</h4>
<pre>protected static java.lang.ClassLoader getContextClassLoader()
throws <a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></pre>
<div class="block">Gets the context classloader.
This method is a workaround for a java 1.2 compiler bug.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></code></dd><dt><span class="strong">Since:</span></dt>
<dd>1.1</dd></dl>
</li>
</ul>
<a name="isDiagnosticsEnabled()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDiagnosticsEnabled</h4>
<pre>protected static boolean isDiagnosticsEnabled()</pre>
<div class="block">Workaround for bug in Java1.2; in theory this method is not needed.
See LogFactory.isDiagnosticsEnabled.</div>
</li>
</ul>
<a name="getClassLoader(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClassLoader</h4>
<pre>protected static java.lang.ClassLoader getClassLoader(java.lang.Class clazz)</pre>
<div class="block">Workaround for bug in Java1.2; in theory this method is not needed.
See LogFactory.getClassLoader.</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>1.1</dd></dl>
</li>
</ul>
<a name="initDiagnostics()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initDiagnostics</h4>
<pre>private void initDiagnostics()</pre>
<div class="block">Calculate and cache a string that uniquely identifies this instance,
including which classloader the object was loaded from.
<p>
This string will later be prefixed to each "internal logging" message
emitted, so that users can clearly see any unexpected behaviour.
<p>
Note that this method does not detect whether internal logging is
enabled or not, nor where to output stuff if it is; that is all
handled by the parent LogFactory class. This method just computes
its own unique prefix for log messages.</div>
</li>
</ul>
<a name="logDiagnostic(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>logDiagnostic</h4>
<pre>protected void logDiagnostic(java.lang.String msg)</pre>
<div class="block">Output a diagnostic message to a user-specified destination (if the
user has enabled diagnostic logging).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>msg</code> - diagnostic message</dd><dt><span class="strong">Since:</span></dt>
<dd>1.1</dd></dl>
</li>
</ul>
<a name="getLogClassName()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLogClassName</h4>
<pre>protected java.lang.String getLogClassName()</pre>
<div class="block"><span class="strong">Deprecated.</span> <i>Never invoked by this class; subclasses should not assume
it will be.</i></div>
<div class="block">Return the fully qualified Java classname of the <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a>
implementation we will be using.</div>
</li>
</ul>
<a name="getLogConstructor()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLogConstructor</h4>
<pre>protected java.lang.reflect.Constructor getLogConstructor()
throws <a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></pre>
<div class="block"><span class="strong">Deprecated.</span> <i>Never invoked by this class; subclasses should not assume
it will be.</i></div>
<div class="block"><p>Return the <code>Constructor</code> that can be called to instantiate
new <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a> instances.</p>
<p><strong>IMPLEMENTATION NOTE</strong> - Race conditions caused by
calling this method from more than one thread are ignored, because
the same <code>Constructor</code> instance will ultimately be derived
in all circumstances.</p></div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></code> - if a suitable constructor
cannot be returned</dd></dl>
</li>
</ul>
<a name="isJdk13LumberjackAvailable()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isJdk13LumberjackAvailable</h4>
<pre>protected boolean isJdk13LumberjackAvailable()</pre>
<div class="block"><span class="strong">Deprecated.</span> <i>Never invoked by this class; subclasses should not assume
it will be.</i></div>
<div class="block">Is <em>JDK 1.3 with Lumberjack</em> logging available?</div>
</li>
</ul>
<a name="isJdk14Available()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isJdk14Available</h4>
<pre>protected boolean isJdk14Available()</pre>
<div class="block"><span class="strong">Deprecated.</span> <i>Never invoked by this class; subclasses should not assume
it will be.</i></div>
<div class="block">Return <code>true</code> if <em>JDK 1.4 or later</em> logging
is available. Also checks that the <code>Throwable</code> class
supports <code>getStackTrace()</code>, which is required by
Jdk14Logger.</div>
</li>
</ul>
<a name="isLog4JAvailable()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isLog4JAvailable</h4>
<pre>protected boolean isLog4JAvailable()</pre>
<div class="block"><span class="strong">Deprecated.</span> <i>Never invoked by this class; subclasses should not assume
it will be.</i></div>
<div class="block">Is a <em>Log4J</em> implementation available?</div>
</li>
</ul>
<a name="newInstance(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newInstance</h4>
<pre>protected <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging">Log</a> newInstance(java.lang.String name)
throws <a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></pre>
<div class="block">Create and return a new <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging"><code>Log</code></a>
instance for the specified name.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - Name of the new logger</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></code> - if a new instance cannot
be created</dd></dl>
</li>
</ul>
<a name="getContextClassLoaderInternal()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getContextClassLoaderInternal</h4>
<pre>private static java.lang.ClassLoader getContextClassLoaderInternal()
throws <a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></pre>
<div class="block">Calls LogFactory.directGetContextClassLoader under the control of an
AccessController class. This means that java code running under a
security manager that forbids access to ClassLoaders will still work
if this class is given appropriate privileges, even when the caller
doesn't have such privileges. Without using an AccessController, the
the entire call stack must have the privilege before the call is
allowed.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the context classloader associated with the current thread,
or null if security doesn't allow it.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></code> - if there was some weird error while
attempting to get the context classloader.</dd>
<dd><code>java.lang.SecurityException</code> - if the current java security policy doesn't
allow this class to access the context classloader.</dd></dl>
</li>
</ul>
<a name="getSystemProperty(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSystemProperty</h4>
<pre>private static java.lang.String getSystemProperty(java.lang.String key,
java.lang.String def)
throws java.lang.SecurityException</pre>
<div class="block">Read the specified system property, using an AccessController so that
the property can be read if JCL has been granted the appropriate
security rights even if the calling code has not.
<p>
Take care not to expose the value returned by this method to the
calling application in any way; otherwise the calling app can use that
info to access data that should not be available to it.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.SecurityException</code></dd></dl>
</li>
</ul>
<a name="getParentClassLoader(java.lang.ClassLoader)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getParentClassLoader</h4>
<pre>private java.lang.ClassLoader getParentClassLoader(java.lang.ClassLoader cl)</pre>
<div class="block">Fetch the parent classloader of a specified classloader.
<p>
If a SecurityException occurs, null is returned.
<p>
Note that this method is non-static merely so logDiagnostic is available.</div>
</li>
</ul>
<a name="isLogLibraryAvailable(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isLogLibraryAvailable</h4>
<pre>private boolean isLogLibraryAvailable(java.lang.String name,
java.lang.String classname)</pre>
<div class="block">Utility method to check whether a particular logging library is
present and available for use. Note that this does <i>not</i>
affect the future behaviour of this class.</div>
</li>
</ul>
<a name="getConfigurationValue(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getConfigurationValue</h4>
<pre>private java.lang.String getConfigurationValue(java.lang.String property)</pre>
<div class="block">Attempt to find an attribute (see method setAttribute) or a
system property with the provided name and return its value.
<p>
The attributes associated with this object are checked before
system properties in case someone has explicitly called setAttribute,
or a configuration property has been set in a commons-logging.properties
file.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the value associated with the property, or null.</dd></dl>
</li>
</ul>
<a name="getBooleanConfiguration(java.lang.String, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBooleanConfiguration</h4>
<pre>private boolean getBooleanConfiguration(java.lang.String key,
boolean dflt)</pre>
<div class="block">Get the setting for the user-configurable behaviour specified by key.
If nothing has explicitly been set, then return dflt.</div>
</li>
</ul>
<a name="initConfiguration()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initConfiguration</h4>
<pre>private void initConfiguration()</pre>
<div class="block">Initialize a number of variables that control the behaviour of this
class and that can be tweaked by the user. This is done when the first
logger is created, not in the constructor of this class, because we
need to give the user a chance to call method setAttribute in order to
configure this object.</div>
</li>
</ul>
<a name="discoverLogImplementation(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>discoverLogImplementation</h4>
<pre>private <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging">Log</a> discoverLogImplementation(java.lang.String logCategory)
throws <a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></pre>
<div class="block">Attempts to create a Log instance for the given category name.
Follows the discovery process described in the class javadoc.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>logCategory</code> - the name of the log category</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></code> - if an error in discovery occurs,
or if no adapter at all can be instantiated</dd></dl>
</li>
</ul>
<a name="informUponSimilarName(java.lang.StringBuffer, java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>informUponSimilarName</h4>
<pre>private void informUponSimilarName(java.lang.StringBuffer messageBuffer,
java.lang.String name,
java.lang.String candidate)</pre>
<div class="block">Appends message if the given name is similar to the candidate.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>messageBuffer</code> - <code>StringBuffer</code> the message should be appended to,
not null</dd><dd><code>name</code> - the (trimmed) name to be test against the candidate, not null</dd><dd><code>candidate</code> - the candidate name (not null)</dd></dl>
</li>
</ul>
<a name="findUserSpecifiedLogClassName()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>findUserSpecifiedLogClassName</h4>
<pre>private java.lang.String findUserSpecifiedLogClassName()</pre>
<div class="block">Checks system properties and the attribute map for
a Log implementation specified by the user under the
property names <a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#LOG_PROPERTY"><code>LOG_PROPERTY</code></a> or <a href="../../../../../org/apache/commons/logging/impl/LogFactoryImpl.html#LOG_PROPERTY_OLD"><code>LOG_PROPERTY_OLD</code></a>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>classname specified by the user, or <code>null</code></dd></dl>
</li>
</ul>
<a name="createLogFromClass(java.lang.String, java.lang.String, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createLogFromClass</h4>
<pre>private <a href="../../../../../org/apache/commons/logging/Log.html" title="interface in org.apache.commons.logging">Log</a> createLogFromClass(java.lang.String logAdapterClassName,
java.lang.String logCategory,
boolean affectState)
throws <a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></pre>
<div class="block">Attempts to load the given class, find a suitable constructor,
and instantiate an instance of Log.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>logAdapterClassName</code> - classname of the Log implementation</dd><dd><code>logCategory</code> - argument to pass to the Log implementation's constructor</dd><dd><code>affectState</code> - <code>true</code> if this object's state should
be affected by this method call, <code>false</code> otherwise.</dd>
<dt><span class="strong">Returns:</span></dt><dd>an instance of the given class, or null if the logging
library associated with the specified adapter is not available.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></code> - if there was a serious error with
configuration and the handleFlawedDiscovery method decided this
problem was fatal.</dd></dl>
</li>
</ul>
<a name="getBaseClassLoader()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBaseClassLoader</h4>
<pre>private java.lang.ClassLoader getBaseClassLoader()
throws <a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></pre>
<div class="block">Return the classloader from which we should try to load the logging
adapter classes.
<p>
This method usually returns the context classloader. However if it
is discovered that the classloader which loaded this class is a child
of the context classloader <i>and</i> the allowFlawedContext option
has been set then the classloader which loaded this class is returned
instead.
<p>
The only time when the classloader which loaded this class is a
descendant (rather than the same as or an ancestor of the context
classloader) is when an app has created custom classloaders but
failed to correctly set the context classloader. This is a bug in
the calling application; however we provide the option for JCL to
simply generate a warning rather than fail outright.</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></code></dd></dl>
</li>
</ul>
<a name="getLowestClassLoader(java.lang.ClassLoader, java.lang.ClassLoader)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLowestClassLoader</h4>
<pre>private java.lang.ClassLoader getLowestClassLoader(java.lang.ClassLoader c1,
java.lang.ClassLoader c2)</pre>
<div class="block">Given two related classloaders, return the one which is a child of
the other.
<p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>c1</code> - is a classloader (including the null classloader)</dd><dd><code>c2</code> - is a classloader (including the null classloader)</dd>
<dt><span class="strong">Returns:</span></dt><dd>c1 if it has c2 as an ancestor, c2 if it has c1 as an ancestor,
and null if neither is an ancestor of the other.</dd></dl>
</li>
</ul>
<a name="handleFlawedDiscovery(java.lang.String, java.lang.ClassLoader, java.lang.Throwable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleFlawedDiscovery</h4>
<pre>private void handleFlawedDiscovery(java.lang.String logAdapterClassName,
java.lang.ClassLoader classLoader,
java.lang.Throwable discoveryFlaw)</pre>
<div class="block">Generates an internal diagnostic logging of the discovery failure and
then throws a <code>LogConfigurationException</code> that wraps
the passed <code>Throwable</code>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>logAdapterClassName</code> - is the class name of the Log implementation
that could not be instantiated. Cannot be <code>null</code>.</dd><dd><code>classLoader</code> - is the classloader that we were trying to load the
logAdapterClassName from when the exception occurred.</dd><dd><code>discoveryFlaw</code> - is the Throwable created by the classloader</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></code> - ALWAYS</dd></dl>
</li>
</ul>
<a name="handleFlawedHierarchy(java.lang.ClassLoader, java.lang.Class)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>handleFlawedHierarchy</h4>
<pre>private void handleFlawedHierarchy(java.lang.ClassLoader badClassLoader,
java.lang.Class badClass)
throws <a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></pre>
<div class="block">Report a problem loading the log adapter, then either return
(if the situation is considered recoverable) or throw a
LogConfigurationException.
<p>
There are two possible reasons why we successfully loaded the
specified log adapter class then failed to cast it to a Log object:
<ol>
<li>the specific class just doesn't implement the Log interface
(user screwed up), or
<li> the specified class has bound to a Log class loaded by some other
classloader; Log@classloaderX cannot be cast to Log@classloaderY.
</ol>
<p>
Here we try to figure out which case has occurred so we can give the
user some reasonable feedback.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>badClassLoader</code> - is the classloader we loaded the problem class from,
ie it is equivalent to badClass.getClassLoader().</dd><dd><code>badClass</code> - is a Class object with the desired name, but which
does not implement Log correctly.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../org/apache/commons/logging/LogConfigurationException.html" title="class in org.apache.commons.logging">LogConfigurationException</a></code> - when the situation
should not be recovered from.</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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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="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>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/commons/logging/impl/Log4JLogger.html" title="class in org.apache.commons.logging.impl"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/commons/logging/impl/LogKitLogger.html" title="class in org.apache.commons.logging.impl"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/commons/logging/impl/LogFactoryImpl.html" target="_top">Frames</a></li>
<li><a href="LogFactoryImpl.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 2002-2013 The Apache Software Foundation.<!-- Licensed 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.--></small></p>
</body>
</html>
|