blob: 77078555800867a0d80f6f0bb0d15a1df7b9a5e4 [file] [log] [blame]
<!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_25) on Sat May 17 12:14:26 CEST 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
<title>Logger (Apache Felix iPOJO ~ JavaDoc 1.12.0 API)</title>
<meta name="date" content="2014-05-17">
<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="Logger (Apache Felix iPOJO ~ JavaDoc 1.12.0 API)";
}
//-->
</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="class-use/Logger.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>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/felix/ipojo/util/Log.html" title="interface in org.apache.felix.ipojo.util"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/felix/ipojo/util/Logger.ConsoleLogService.html" title="class in org.apache.felix.ipojo.util"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/felix/ipojo/util/Logger.html" target="_top">Frames</a></li>
<li><a href="Logger.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:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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.felix.ipojo.util</div>
<h2 title="Class Logger" class="title">Class Logger</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.felix.ipojo.util.Logger</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../org/apache/felix/ipojo/util/Log.html" title="interface in org.apache.felix.ipojo.util">Log</a></dd>
</dl>
<hr>
<br>
<pre>public class <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.35">Logger</a>
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../org/apache/felix/ipojo/util/Log.html" title="interface in org.apache.felix.ipojo.util">Log</a></pre>
<div class="block">iPOJO Logger.
This class is an helper class implementing a simple log system.
This logger sends log messages to a log service if available.</div>
<dl><dt><span class="strong">Author:</span></dt>
<dd><a href="mailto:dev@felix.apache.org">Felix Project Team</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static class&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.ConsoleLogService.html" title="class in org.apache.felix.ipojo.util">Logger.ConsoleLogService</a></strong></code>
<div class="block">A simple log service implementation writing the messages and stack trace on System.err.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== 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">&nbsp;</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>private static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#DEBUG_HEADER">DEBUG_HEADER</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#ERROR_HEADER">ERROR_HEADER</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#INFO_HEADER">INFO_HEADER</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#IPOJO_LOG_LEVEL_HEADER">IPOJO_LOG_LEVEL_HEADER</a></strong></code>
<div class="block">iPOJO log level manifest header.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#IPOJO_LOG_LEVEL_PROP">IPOJO_LOG_LEVEL_PROP</a></strong></code>
<div class="block">The iPOJO default log level property.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private BundleContext</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#m_context">m_context</a></strong></code>
<div class="block">The Bundle Context used to get the
log service.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static <a href="http://www.osgi.org/javadoc/r4v43/cmpn/org/osgi/service/log/LogService.html?is-external=true" title="class or interface in org.osgi.service.log">LogService</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#m_defaultLogger">m_defaultLogger</a></strong></code>
<div class="block">A shared log service implementation writing messages on the console.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="../../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#m_instance">m_instance</a></strong></code>
<div class="block">The instance associated to the logger if any.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#m_level">m_level</a></strong></code>
<div class="block">The trace level of this logger.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#m_name">m_name</a></strong></code>
<div class="block">The name of the logger.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#UNKNOWN_HEADER">UNKNOWN_HEADER</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#WARNING_HEADER">WARNING_HEADER</a></strong></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.felix.ipojo.util.Log">
<!-- -->
</a>
<h3>Fields inherited from interface&nbsp;org.apache.felix.ipojo.util.<a href="../../../../../org/apache/felix/ipojo/util/Log.html" title="interface in org.apache.felix.ipojo.util">Log</a></h3>
<code><a href="../../../../../org/apache/felix/ipojo/util/Log.html#DEBUG">DEBUG</a>, <a href="../../../../../org/apache/felix/ipojo/util/Log.html#ERROR">ERROR</a>, <a href="../../../../../org/apache/felix/ipojo/util/Log.html#INFO">INFO</a>, <a href="../../../../../org/apache/felix/ipojo/util/Log.html#WARNING">WARNING</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">&nbsp;</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/felix/ipojo/util/Logger.html#Logger(BundleContext, org.apache.felix.ipojo.ComponentInstance)">Logger</a></strong>(BundleContext&nbsp;context,
<a href="../../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a>&nbsp;instance)</code>
<div class="block">Create a logger.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#Logger(BundleContext, org.apache.felix.ipojo.ComponentInstance, int)">Logger</a></strong>(BundleContext&nbsp;context,
<a href="../../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a>&nbsp;instance,
int&nbsp;level)</code>
<div class="block">Creates a logger.</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#Logger(BundleContext, java.lang.String)">Logger</a></strong>(BundleContext&nbsp;context,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</code>
<div class="block">Create a logger.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#Logger(BundleContext, java.lang.String, int)">Logger</a></strong>(BundleContext&nbsp;context,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
int&nbsp;level)</code>
<div class="block">Creates a logger.</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">&nbsp;</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 void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#dispatch(int, java.lang.String, java.lang.Throwable)">dispatch</a></strong>(int&nbsp;level,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;msg,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;exception)</code>
<div class="block">Internal log method.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#getDefaultLevel(BundleContext)">getDefaultLevel</a></strong>(BundleContext&nbsp;context)</code>
<div class="block">Gets the default logger level.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#getLogHeaderForLevel(int)">getLogHeaderForLevel</a></strong>(int&nbsp;level)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#invokeErrorHandler(int, java.lang.String, java.lang.Throwable)">invokeErrorHandler</a></strong>(int&nbsp;level,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;msg,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;error)</code>
<div class="block">Invokes the error handler service is present.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#log(int, java.lang.String)">log</a></strong>(int&nbsp;level,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;msg)</code>
<div class="block">Logs a message.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/felix/ipojo/util/Logger.html#log(int, java.lang.String, java.lang.Throwable)">log</a></strong>(int&nbsp;level,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;msg,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;exception)</code>
<div class="block">Logs a message with an exception.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></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="IPOJO_LOG_LEVEL_PROP">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>IPOJO_LOG_LEVEL_PROP</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.40">IPOJO_LOG_LEVEL_PROP</a></pre>
<div class="block">The iPOJO default log level property.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.util.Logger.IPOJO_LOG_LEVEL_PROP">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="IPOJO_LOG_LEVEL_HEADER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>IPOJO_LOG_LEVEL_HEADER</h4>
<pre>public static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.47">IPOJO_LOG_LEVEL_HEADER</a></pre>
<div class="block">iPOJO log level manifest header.
The uppercase 'I' is important as BND removes all headers that do not
start with an uppercase are not added to the bundle.
Use an upper case to support bnd.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.util.Logger.IPOJO_LOG_LEVEL_HEADER">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="m_defaultLogger">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_defaultLogger</h4>
<pre>private static final&nbsp;<a href="http://www.osgi.org/javadoc/r4v43/cmpn/org/osgi/service/log/LogService.html?is-external=true" title="class or interface in org.osgi.service.log">LogService</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.51">m_defaultLogger</a></pre>
<div class="block">A shared log service implementation writing messages on the console.</div>
</li>
</ul>
<a name="DEBUG_HEADER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEBUG_HEADER</h4>
<pre>private static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.52">DEBUG_HEADER</a></pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.util.Logger.DEBUG_HEADER">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="INFO_HEADER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>INFO_HEADER</h4>
<pre>private static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.53">INFO_HEADER</a></pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.util.Logger.INFO_HEADER">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="WARNING_HEADER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WARNING_HEADER</h4>
<pre>private static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.54">WARNING_HEADER</a></pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.util.Logger.WARNING_HEADER">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="ERROR_HEADER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ERROR_HEADER</h4>
<pre>private static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.55">ERROR_HEADER</a></pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.util.Logger.ERROR_HEADER">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="UNKNOWN_HEADER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>UNKNOWN_HEADER</h4>
<pre>private static final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.56">UNKNOWN_HEADER</a></pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.felix.ipojo.util.Logger.UNKNOWN_HEADER">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="m_context">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_context</h4>
<pre>private final&nbsp;BundleContext <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.61">m_context</a></pre>
<div class="block">The Bundle Context used to get the
log service.</div>
</li>
</ul>
<a name="m_name">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_name</h4>
<pre>private final&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.65">m_name</a></pre>
<div class="block">The name of the logger.</div>
</li>
</ul>
<a name="m_level">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>m_level</h4>
<pre>private final&nbsp;int <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.69">m_level</a></pre>
<div class="block">The trace level of this logger.</div>
</li>
</ul>
<a name="m_instance">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>m_instance</h4>
<pre>private&nbsp;<a href="../../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a> <a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.73">m_instance</a></pre>
<div class="block">The instance associated to the logger if any.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Logger(BundleContext, java.lang.String, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Logger</h4>
<pre>public&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.82">Logger</a>(BundleContext&nbsp;context,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
int&nbsp;level)</pre>
<div class="block">Creates a logger.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>context</code> - the bundle context</dd><dd><code>name</code> - the name of the logger</dd><dd><code>level</code> - the trace level</dd></dl>
</li>
</ul>
<a name="Logger(BundleContext, org.apache.felix.ipojo.ComponentInstance, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Logger</h4>
<pre>public&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.95">Logger</a>(BundleContext&nbsp;context,
<a href="../../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a>&nbsp;instance,
int&nbsp;level)</pre>
<div class="block">Creates a logger.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>context</code> - the bundle context</dd><dd><code>instance</code> - the instance</dd><dd><code>level</code> - the trace level</dd></dl>
</li>
</ul>
<a name="Logger(BundleContext, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Logger</h4>
<pre>public&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.107">Logger</a>(BundleContext&nbsp;context,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</pre>
<div class="block">Create a logger.
Uses the default logger level.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>context</code> - the bundle context</dd><dd><code>name</code> - the name of the logger</dd></dl>
</li>
</ul>
<a name="Logger(BundleContext, org.apache.felix.ipojo.ComponentInstance)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Logger</h4>
<pre>public&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.118">Logger</a>(BundleContext&nbsp;context,
<a href="../../../../../org/apache/felix/ipojo/ComponentInstance.html" title="interface in org.apache.felix.ipojo">ComponentInstance</a>&nbsp;instance)</pre>
<div class="block">Create a logger.
Uses the default logger level.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>context</code> - the bundle context</dd><dd><code>instance</code> - the instance</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getDefaultLevel(BundleContext)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDefaultLevel</h4>
<pre>private static&nbsp;int&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.131">getDefaultLevel</a>(BundleContext&nbsp;context)</pre>
<div class="block">Gets the default logger level.
The property is searched inside the framework properties,
the system properties, and in the manifest from the given
bundle context. By default, set the level to <a href="../../../../../org/apache/felix/ipojo/util/Log.html#WARNING"><code>Log.WARNING</code></a>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>context</code> - the bundle context.</dd>
<dt><span class="strong">Returns:</span></dt><dd>the default log level.</dd></dl>
</li>
</ul>
<a name="getLogHeaderForLevel(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLogHeaderForLevel</h4>
<pre>private static&nbsp;<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.164">getLogHeaderForLevel</a>(int&nbsp;level)</pre>
</li>
</ul>
<a name="log(int, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>log</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.185">log</a>(int&nbsp;level,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;msg)</pre>
<div class="block">Logs a message.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/felix/ipojo/util/Log.html#log(int, java.lang.String)">log</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/felix/ipojo/util/Log.html" title="interface in org.apache.felix.ipojo.util">Log</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>level</code> - the level of the message</dd><dd><code>msg</code> - the the message to log</dd></dl>
</li>
</ul>
<a name="log(int, java.lang.String, java.lang.Throwable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>log</h4>
<pre>public&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.199">log</a>(int&nbsp;level,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;msg,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;exception)</pre>
<div class="block">Logs a message with an exception.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/felix/ipojo/util/Log.html#log(int, java.lang.String, java.lang.Throwable)">log</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/apache/felix/ipojo/util/Log.html" title="interface in org.apache.felix.ipojo.util">Log</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>level</code> - the level of the message</dd><dd><code>msg</code> - the message to log</dd><dd><code>exception</code> - the exception attached to the message</dd></dl>
</li>
</ul>
<a name="dispatch(int, java.lang.String, java.lang.Throwable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dispatch</h4>
<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.213">dispatch</a>(int&nbsp;level,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;msg,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;exception)</pre>
<div class="block">Internal log method.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>level</code> - the level of the message.</dd><dd><code>msg</code> - the message to log</dd><dd><code>exception</code> - the exception attached to the message</dd></dl>
</li>
</ul>
<a name="invokeErrorHandler(int, java.lang.String, java.lang.Throwable)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>invokeErrorHandler</h4>
<pre>private&nbsp;void&nbsp;<a href="../../../../../src-html/org/apache/felix/ipojo/util/Logger.html#line.271">invokeErrorHandler</a>(int&nbsp;level,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;msg,
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a>&nbsp;error)</pre>
<div class="block">Invokes the error handler service is present.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>level</code> - the log level</dd><dd><code>msg</code> - the message</dd><dd><code>error</code> - the error</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="class-use/Logger.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>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/felix/ipojo/util/Log.html" title="interface in org.apache.felix.ipojo.util"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/felix/ipojo/util/Logger.ConsoleLogService.html" title="class in org.apache.felix.ipojo.util"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/felix/ipojo/util/Logger.html" target="_top">Frames</a></li>
<li><a href="Logger.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:&nbsp;</li>
<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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 &#169; 2014. All rights reserved.</small></p>
</body>
</html>