Content deleted Content added
No edit summary |
m →Example: "Nonexistant" -> "Nonexistent", "non-existent" -> "nonexistent" |
||
(20 intermediate revisions by 16 users not shown) | |||
Line 1:
{{Short description|Logging model and program}}
{{Infobox software
| name
| logo
| screenshot =
| ▲| developer = [[Apache Software Foundation]]
| latest release version = 1.3.4
▲| released =
| latest release
| latest preview version =
| latest preview date
| operating system
| programming language
| genre
| license
▲| website = {{URL|https://commons.apache.org/proper/commons-logging/}}
| website = {{URL|https://commons.apache.org/proper/commons-logging/}}
}}
'''Apache Commons Logging''' (previously known as '''Jakarta Commons Logging'''
==
The following table defines the log levels and messages in
{| class="wikitable"
Line 44 ⟶ 46:
| '''trace'''
| Most detailed information. Expect these to be written to logs only.
|}<ref name=":ac_c"/><ref name=":ajc_120">{{Cite book|title = Apache Jakarta Commons - Reusable Java Components|last = Iverson|first = W.|publisher = Pearson Education, Inc.|year = 2005|___location = Crawfordsville, Indiana, USA
== Configuration ==
Two basic abstractions, Log and LogFactory, are used in
== Example ==
Sample code may look like as follows:
<
package com.cascadetg.ch09;
Line 98 ⟶ 100:
} catch (Exception e)
{
log.fatal(e.getMessage(), e);
}
Line 117 ⟶ 119:
try
{
Class.forName("com.cascadetg.
} catch (Exception e)
{
log.warn("Can't find a
}
System.out.println();
Line 155 ⟶ 157:
System.out.println();
System.out.println("Log test complete.");
}
}
</
== See also ==
{{Portal|
*[[log4j]]
*
*{{GitHub|https://github.com/apache/commons-logging
== References ==
{{Reflist}}
== External links ==
*{{Official website|https://commons.apache.org/proper/commons-logging/}}
{{Apache Software Foundation}}
[[Category:Apache Software Foundation|Commons Logging]]
Line 178 ⟶ 179:
[[Category:Log file formats]]
[[Category:Software using the Apache license]]
[[Category:Apache Commons|Logging]]
|