Content deleted Content added
m Navbox was moved in September 2018, replaced: {{Apache}} → {{Apache Software Foundation}} |
m →Example: "Nonexistant" -> "Nonexistent", "non-existent" -> "nonexistent" |
||
(13 intermediate revisions by 11 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''' or '''JCL''') is a [[Java platform|Java]]-based [[data logging|logging]] utility and a programming model for logging and for other toolkits. It provides [[Application programming interface|API]]s, log implementations, and [[Adapter pattern|wrapper]] implementations over some other tools.<ref name=":ac">{{Cite web|url = http://commons.apache.org/proper/commons-logging/|title = commons logging|access-date
== Log level ==
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 ==
Line 51 ⟶ 53:
== Example ==
Sample code may look like as follows:
<
package com.cascadetg.ch09;
Line 117 ⟶ 119:
try
{
Class.forName("com.cascadetg.
} catch (Exception e)
{
log.warn("Can't find a
}
Line 157 ⟶ 159:
}
}
</
== See also ==
{{Portal|
*[[log4j]]
*
*{{GitHub|https://github.com/apache/commons-logging
== References ==
Line 177 ⟶ 179:
[[Category:Log file formats]]
[[Category:Software using the Apache license]]
[[Category:Apache Commons|Logging]]
|