blob: 2b0d053c3922c0ea6255a46d54b73b0a9bfb7fc9 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.4) on Fri Sep 20 12:10:30 CEST 2019 -->
<title>org.apache.sis.util.logging (Apache SIS 1.0 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2019-09-20">
<meta name="keywords" content="org.apache.sis.util.logging package">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../sis.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.apache.sis.util.logging (Apache SIS 1.0 API)";
}
}
catch(err) {
}
//-->
var pathtoroot = "../../../../../";
var useModuleDirectories = false;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.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>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<main role="main">
<div class="header">
<h1 title="Package" class="title">Package&nbsp;org.apache.sis.util.logging</h1>
</div>
<div class="contentContainer">
<section role="region"><a id="package.description">
<!-- -->
</a>
<div class="block">Extensions to the <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/package-summary.html?is-external=true" class="externalLink">JDK logging</a> framework.
This package provides:
<ul>
<li>A <a href="Logging.html" title="class in org.apache.sis.util.logging"><code>Logging</code></a> utility class with static methods for
fetching a logger (see <cite>Choosing a logging framework</cite> below) or logging an
exception.</li>
<li>A <a href="PerformanceLevel.html" title="class in org.apache.sis.util.logging"><code>Performance­Level</code></a> with configurable levels for
logging the duration of lengthly processes.</li>
<li>A <a href="MonolineFormatter.html" title="class in org.apache.sis.util.logging"><code>Monoline­Formatter</code></a> for formatting the log
records on single line with colors, for easier reading on the console output.</li>
</ul>
<div class="section">Choosing a logging framework</div>
The SIS project uses the standard <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html?is-external=true" title="class or interface in java.util.logging" class="externalLink"><code>Logger</code></a> API for its logging,
but this package allows redirection of logging messages to some other frameworks like
<a href="http://logging.apache.org/log4j/">Log4J</a>.
We recommend to stick to standard JDK logging when possible. However if inter-operability
with an other logging framework is required, then the only action needed is to include
<strong>one</strong> of the following JAR on the classpath:
<ul>
<li><code>sis-logging-commons​.jar</code> for Apache logging</li>
<li><code>sis-logging-log4j​.jar</code> for Log4J logging</li>
<li>Any other JAR registering a <a href="LoggerFactory.html" title="class in org.apache.sis.util.logging"><code>Logger­Factory</code></a> implementation.</li>
</ul>
<div class="section">Note for SIS developers</div>
All SIS code should fetch their logger through a call to our custom
<a href="Logging.html#getLogger(java.lang.String)"><code>Logging​.get­Logger(String)</code></a> method instead than
the standard <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html?is-external=true#getLogger(java.lang.String)" title="class or interface in java.util.logging" class="externalLink"><code>Logger​.get­Logger(String)</code></a> method. This is necessary in
order to give SIS a chance to redirect log events to an other logging framework.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>0.3</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="http://download.oracle.com/javase/6/docs/technotes/guides/logging/overview.html">Java Logging Overview</a></dd>
<p><font size="-1">Defined in the <code>sis-utility</code> module</font></p>
</dl>
</section>
<ul class="blockList">
<li class="blockList">
<table class="typeSummary">
<caption><span>Interface Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Interface</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="WarningListener.html" title="interface in org.apache.sis.util.logging">WarningListener</a>&lt;S&gt;</th>
<td class="colLast">Deprecated.
<div class="deprecationComment">Replaced by <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Filter.html?is-external=true" title="class or interface in java.util.logging" class="externalLink"><code>Filter</code></a>.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="typeSummary">
<caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="LoggerAdapter.html" title="class in org.apache.sis.util.logging">LoggerAdapter</a></th>
<td class="colLast">
<div class="block">An adapter that redirect all JDK logging events to an other logging framework.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="LoggerFactory.html" title="class in org.apache.sis.util.logging">LoggerFactory</a>&lt;L&gt;</th>
<td class="colLast">
<div class="block">A factory for Java <a href="https://docs.oracle.com/javase/8/docs/api/java/util/logging/Logger.html?is-external=true" title="class or interface in java.util.logging" class="externalLink"><code>Logger</code></a> wrapping an other logging framework.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="Logging.html" title="class in org.apache.sis.util.logging">Logging</a></th>
<td class="colLast">
<div class="block">A set of utilities method for configuring loggings in SIS.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="MonolineFormatter.html" title="class in org.apache.sis.util.logging">MonolineFormatter</a></th>
<td class="colLast">
<div class="block">A formatter writing log messages on a single line.</div>
</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><a href="PerformanceLevel.html" title="class in org.apache.sis.util.logging">PerformanceLevel</a></th>
<td class="colLast">
<div class="block">Logging levels for measurements of execution time.</div>
</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><a href="WarningListeners.html" title="class in org.apache.sis.util.logging">WarningListeners</a>&lt;S&gt;</th>
<td class="colLast">Deprecated.
<div class="deprecationComment">Replaced by <a href="../../storage/event/StoreListeners.html" title="class in org.apache.sis.storage.event"><code>Store­Listeners</code></a>.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
</main>
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.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>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses.html">All&nbsp;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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2010&#x2013;2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>