You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ts...@apache.org on 2017/04/11 14:24:32 UTC

svn commit: r1010236 [12/12] - in /websites/production/logging/content/log4cxx/latest_stable: ./ apidocs/ building/ css/ fonts/ images/ images/logos/ images/profiles/ img/ js/

Modified: websites/production/logging/content/log4cxx/latest_stable/usage.html
==============================================================================
--- websites/production/logging/content/log4cxx/latest_stable/usage.html (original)
+++ websites/production/logging/content/log4cxx/latest_stable/usage.html Tue Apr 11 14:24:32 2017
@@ -1,170 +1,196 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements.  See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You 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.
-
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You 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.
 -->
 <!-- Generated by Apache Maven Doxia at 2017-04-11 -->
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-  <head>
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-    <title>log4cxx -
-		How to use Apache log4cxx</title>
-    <style type="text/css" media="all">
-      @import url("./css/maven-base.css");
-      @import url("./css/maven-theme.css");
-      @import url("./css/site.css");
-    </style>
-    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
-    <meta name="Date-Revision-yyyymmdd" content="20170411" />
-    <meta http-equiv="Content-Language" content="en" />
-      </head>
-  <body class="composite">
-    <div id="banner">
-                  <a href=".." id="bannerLeft">
-                                                <img src="images/logos/ls-logo.jpg" alt="Logging Services" />
-                </a>
-                    <div class="clear">
-        <hr/>
-      </div>
-    </div>
-    <div id="breadcrumbs">
-
-
-                <div class="xleft">
-        <span id="publishDate">Last Published: 2017-04-11</span>
-                  &nbsp;| <span id="projectVersion">Version: 0.10.0</span>
-                          |                           <a href="http://www.apache.org/" class="externalLink" title="Apache">Apache</a>
-                &gt;
-                              <a href="../" title="Logging Services">Logging Services</a>
-                &gt;
-                              <a href="./" title="log4cxx">log4cxx</a>
-                          </div>
-            <div class="xright">
-
-      </div>
-      <div class="clear">
-        <hr/>
-      </div>
-    </div>
-    <div id="leftColumn">
-      <div id="navcolumn">
-
-
-                                <h5>About</h5>
-                  <ul>
-                  <li class="none">
-                          <a href="index.html" title="What is log4cxx?">What is log4cxx?</a>
-            </li>
-                  <li class="none">
-                          <a href="project-info.html" title="Project Information">Project Information</a>
-            </li>
-                  <li class="none">
-                          <a href="project-reports.html" title="Generated Reports">Generated Reports</a>
-            </li>
-          </ul>
-                       <h5>Usage</h5>
-                  <ul>
-                  <li class="none">
-            <strong>How to use log4cxx?</strong>
-          </li>
-                  <li class="none">
-                          <a href="apidocs/index.html" title="API Documentation">API Documentation</a>
-            </li>
-                  <li class="none">
-                          <a href="faq.html" title="FAQ">FAQ</a>
-            </li>
-          </ul>
-                       <h5>Get</h5>
-                  <ul>
-                  <li class="none">
-                          <a href="download.html" title="Download">Download</a>
-            </li>
-                  <li class="none">
-                          <a href="changes-report.html" title="Changes">Changes</a>
-            </li>
-                  <li class="none">
-                          <a href="license.html" title="License">License</a>
-            </li>
-          </ul>
-                       <h5>Community</h5>
-                  <ul>
-                  <li class="none">
-                          <a href="mail-lists.html" title="Mailing Lists">Mailing Lists</a>
-            </li>
-                  <li class="none">
-                          <a href="issue-tracking.html" title="Issue Tracking">Issue Tracking</a>
-            </li>
-                  <li class="none">
-                          <a href="http://wiki.apache.org/logging-log4cxx" class="externalLink" title="Wiki">Wiki</a>
-            </li>
-          </ul>
-                       <h5>Development</h5>
-                  <ul>
-                  <li class="none">
-                          <a href="source-repository.html" title="Repository">Repository</a>
-            </li>
-                  <li class="none">
-                          <a href="dependencies.html" title="Dependencies">Dependencies</a>
-            </li>
-                                                                                                                                      <li class="expanded">
-                          <a href="building/index.html" title="Building">Building</a>
-                    <ul>
-                      <li class="none">
-                          <a href="building/autotools.html" title="autotools">autotools</a>
-            </li>
-                      <li class="none">
-                          <a href="building/ant.html" title="Apache Ant">Apache Ant</a>
-            </li>
-                      <li class="none">
-                          <a href="building/maven.html" title="Apache Maven 2">Apache Maven 2</a>
-            </li>
-                      <li class="none">
-                          <a href="building/vstudio.html" title="Microsoft Visual Studio">Microsoft Visual Studio</a>
-            </li>
-                      <li class="none">
-                          <a href="building/xcode.html" title="Apple Xcode">Apple Xcode</a>
-            </li>
-              </ul>
-        </li>
-          </ul>
-                       <h5>Apache</h5>
-                  <ul>
-                  <li class="none">
-                          <a href="http://www.apache.org" class="externalLink" title="Home">Home</a>
-            </li>
-                  <li class="none">
-                          <a href="http://www.apache.org/foundation/sponsorship.html" class="externalLink" title="Sponsorship">Sponsorship</a>
-            </li>
-                  <li class="none">
-                          <a href="http://www.apache.org/foundation/thanks.html" class="externalLink" title="Thanks">Thanks</a>
-            </li>
-                  <li class="none">
-                          <a href="http://www.apachecon.com" class="externalLink" title="Conferences">Conferences</a>
-            </li>
-          </ul>
-                             <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
-        <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
-      </a>
-
-
-            </div>
-    </div>
-    <div id="bodyColumn">
-      <div id="contentBox">
-        <!-- Licensed to the Apache Software Foundation (ASF) under one or more
+	<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+		<title>log4cxx -
+		How to use Apache log4cxx - Apache log4cxx</title>
+		<link rel="stylesheet" href="./css/bootstrap.min.css" type="text/css" />
+		<link rel="stylesheet" href="./css/site.css" type="text/css" />
+		<script type="text/javascript" src="./js/jquery.min.js"></script>
+		<script type="text/javascript" src="./js/bootstrap.min.js"></script>
+		<script type="text/javascript" src="./js/prettify.min.js"></script>
+		<script type="text/javascript" src="./js/site.js"></script>
+		<meta name="Date-Revision-yyyymmdd" content="20170411" />
+		<meta http-equiv="Content-Language" content="en" />
+
+				</head>
+	<body class="composite">
+		<a href="https://logging.apache.org/">
+			<img class="logo-left" src="./images/logos/ls-logo.jpg" alt="Apache logging services logo" />
+		</a>
+		<img class="logo-right" src="./images/logos/logo.png" alt="Apache log4j logo" />
+		<div class="clear"></div>
+
+		<div class="navbar">
+			<div class="navbar-inner">
+				<div class="container-fluid">
+					<a class="brand" href="http://logging.apache.org/log4cxx">Apache log4cxx ®</a>
+						<ul class="nav">
+						<li>
+
+
+				<a href="https://wiki.apache.org/logging" class="external" target="_blank" title="Logging Wiki">Logging Wiki</a>
+			</li>
+					<li>
+
+
+				<a href="https://www.apache.org/" class="external" target="_blank" title="Apache">Apache</a>
+			</li>
+					<li>
+
+
+				<a href="https://logging.apache.org/" class="external" target="_blank" title="Logging Services">Logging Services</a>
+			</li>
+					<li>
+
+
+				<a href="https://github.com/apache/logging-log4cxx" class="external" target="_blank" title="GitHub">GitHub</a>
+			</li>
+		</ul>
+
+					<div class="pull-right">
+
+
+						<span id="publishDate">Last Published: 2017-04-11</span>
+							<span class="divider">|</span> <span id="projectVersion">Version: 0.10.0</span>
+											</div>
+				</div>
+			</div>
+		</div>
+
+		<div class="container-fluid">
+			<table class="layout-table">
+				<tr>
+					<td class="sidebar">
+						<div class="well sidebar-nav">
+										<ul class="nav nav-list">
+		 											 <li class="nav-header"><i class="icon-home"></i>About</li>
+																						<li class="none">
+									<a href="index.html" title="What is log4cxx?">What is log4cxx?</a>
+					</li>
+ 																<li class="none">
+									<a href="project-info.html" title="Project Information">Project Information</a>
+					</li>
+ 																<li class="none">
+									<a href="project-reports.html" title="Generated Reports">Generated Reports</a>
+					</li>
+ 								</ul>
+			<ul class="nav nav-list">
+		 											 <li class="nav-header"><i class="icon-book"></i>Usage</li>
+																							<li class="none active">
+									<a href="usage.html" title="How to use log4cxx?">How to use log4cxx?</a>
+					</li>
+ 																<li class="none">
+									<a href="apidocs/index.html" title="API Documentation">API Documentation</a>
+					</li>
+ 																<li class="none">
+									<a href="faq.html" title="FAQ">FAQ</a>
+					</li>
+ 								</ul>
+			<ul class="nav nav-list">
+		 											 <li class="nav-header"><i class="icon-cog"></i>Get</li>
+																						<li class="none">
+									<a href="download.html" title="Download">Download</a>
+					</li>
+ 																<li class="none">
+									<a href="changes-report.html" title="Changes">Changes</a>
+					</li>
+ 																<li class="none">
+									<a href="license.html" title="License">License</a>
+					</li>
+ 								</ul>
+			<ul class="nav nav-list">
+		 											 <li class="nav-header"><i class="icon-pencil"></i>Community</li>
+																						<li class="none">
+									<a href="mail-lists.html" title="Mailing Lists">Mailing Lists</a>
+					</li>
+ 																<li class="none">
+									<a href="issue-tracking.html" title="Issue Tracking">Issue Tracking</a>
+					</li>
+ 																<li class="none">
+
+
+				<a href="http://wiki.apache.org/logging-log4cxx" class="external" target="_blank" title="Wiki">Wiki</a>
+					</li>
+ 								</ul>
+			<ul class="nav nav-list">
+		 											 <li class="nav-header"><i class="icon-pencil"></i>Development</li>
+																						<li class="none">
+									<a href="source-repository.html" title="Repository">Repository</a>
+					</li>
+ 																<li class="none">
+									<a href="dependencies.html" title="Dependencies">Dependencies</a>
+					</li>
+ 																																																																										<li class="expanded">
+									<a href="building/index.html" title="Building">Building</a>
+										<ul>
+																			<li class="none">
+									<a href="building/autotools.html" title="autotools">autotools</a>
+					</li>
+ 																				<li class="none">
+									<a href="building/ant.html" title="Apache Ant">Apache Ant</a>
+					</li>
+ 																				<li class="none">
+									<a href="building/maven.html" title="Apache Maven 2">Apache Maven 2</a>
+					</li>
+ 																				<li class="none">
+									<a href="building/vstudio.html" title="Microsoft Visual Studio">Microsoft Visual Studio</a>
+					</li>
+ 																				<li class="none">
+									<a href="building/xcode.html" title="Apple Xcode">Apple Xcode</a>
+					</li>
+ 										</ul>
+							</li>
+ 								</ul>
+			<ul class="nav nav-list">
+		 											 <li class="nav-header"><i class="icon-info-sign"></i>Apache</li>
+																						<li class="none">
+
+
+				<a href="http://www.apache.org" class="external" target="_blank" title="Home">Home</a>
+					</li>
+ 																<li class="none">
+
+
+				<a href="http://www.apache.org/foundation/sponsorship.html" class="external" target="_blank" title="Sponsorship">Sponsorship</a>
+					</li>
+ 																<li class="none">
+
+
+				<a href="http://www.apache.org/foundation/thanks.html" class="external" target="_blank" title="Thanks">Thanks</a>
+					</li>
+ 																<li class="none">
+
+
+				<a href="http://www.apachecon.com" class="external" target="_blank" title="Conferences">Conferences</a>
+					</li>
+ 								</ul>
+							</div>
+						<div id="poweredBy">
+															<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
+				<img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
+			</a>
+									</div>
+					</td>
+					<td class="content">
+						<!-- Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
@@ -257,7 +283,7 @@
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 namespace log4cxx {
 	class <b>Logger</b> {
 		public:
@@ -289,7 +315,7 @@ namespace log4cxx {
 <p>
 					Loggers <i>may</i> be assigned levels. The pre-defined
 					levels: TRACE, DEBUG, INFO, WARN, ERROR and FATAL are defined in the
-					<tt> <a href="apidocs/classlog4cxx_1_1_level.html">log4cxx::Level</a></tt>
+					<tt><a href="apidocs/classlog4cxx_1_1_level.html">log4cxx::Level</a></tt>
 					class which provides accessor functions.
 				</p>
 
@@ -571,7 +597,7 @@ namespace log4cxx {
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 log4cxx::LoggerPtr logger(log4cxx::Logger::getLogger(<b>&quot;com.foo&quot;</b>));
 const char* region = &quot;World&quot;;
 LOG4CXX_INFO(logger, &quot;Simple message text.&quot;)
@@ -619,7 +645,7 @@ LOG4CXX_WARN(logger, L&quot;&quot; &lt;&
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 // get a logger instance named &quot;com.foo&quot;
 log4cxx::LoggerPtr  logger(log4cxx::Logger::getLogger(<b>&quot;com.foo&quot;</b>));
 
@@ -658,7 +684,7 @@ LOG4CXX_DEBUG(barlogger, &quot;Exiting g
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 log4cxx::LoggerPtr x = log4cxx::Logger::getLogger(&quot;wombat&quot;);
 log4cxx::LoggerPtr y = log4cxx::Logger::getLogger(&quot;wombat&quot;);</pre></div>
 
@@ -901,7 +927,7 @@ log4cxx::LoggerPtr y = log4cxx::Logger::
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 176 [main] INFO org.foo.Bar - Located nearest gas station.</pre></div>
 
 
@@ -943,7 +969,7 @@ log4cxx::LoggerPtr y = log4cxx::Logger::
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 #include &quot;com/foo/bar.h&quot;
 using namespace com::foo;
 
@@ -994,7 +1020,7 @@ int main(int argc, char **argv)
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 // file com/foo/bar.h
 #include &quot;log4cxx/logger.h&quot;
 
@@ -1011,7 +1037,7 @@ namespace com {
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 // file bar.cpp
 #include &quot;com/foo/bar.h&quot;
 
@@ -1047,7 +1073,7 @@ void Bar::doIt() {
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 0    [12345] INFO  MyApp  - Entering application.
 36   [12345] DEBUG com.foo.Bar  - Did it again!
 51   [12345] INFO  MyApp  - Exiting application.</pre></div>
@@ -1062,7 +1088,7 @@ void Bar::doIt() {
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 // file MyApp2.cpp
 
 #include &quot;com/foo/bar.h&quot;
@@ -1123,7 +1149,7 @@ int main(int argc, char **argv)
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 # Set root logger level to DEBUG and its only appender to A1.
 log4j.rootLogger=DEBUG, A1
 
@@ -1148,7 +1174,7 @@ log4j.appender.A1.layout.ConversionPatte
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 log4j.rootLogger=DEBUG, A1
 log4j.appender.A1=org.apache.log4j.ConsoleAppender
 log4j.appender.A1.layout=org.apache.log4j.PatternLayout
@@ -1166,7 +1192,7 @@ log4j.appender.A1.layout.ConversionPatte
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 <b>2000-09-07 14:07:41,508</b> [12345] INFO  MyApp - Entering application.
 <b>2000-09-07 14:07:41,529</b> [12345] INFO  MyApp - Exiting application.</pre></div>
 
@@ -1187,7 +1213,7 @@ log4j.appender.A1.layout.ConversionPatte
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 log4j.rootLogger=debug, <b>stdout, R</b>
 
 log4j.appender.<b>stdout</b>=org.apache.log4j.ConsoleAppender
@@ -1214,7 +1240,7 @@ log4j.appender.R.layout.ConversionPatter
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 INFO [12345] <b>(MyApp2.cpp:31)</b> - Entering application.
 DEBUG [12345] (Bar.h:16) - Doing it again!
 INFO [12345] (MyApp2.cpp:34) - Exiting application.</pre></div>
@@ -1322,7 +1348,7 @@ INFO [12345] (MyApp2.cpp:34) - Exiting a
 
 
 <div>
-<pre>
+<pre class="prettyprint linenums">
 namespace log4cxx {
 	class NDC {
 		public:
@@ -1494,22 +1520,15 @@ namespace log4cxx {
 		</div>
 
 
-      </div>
-    </div>
-    <div class="clear">
-      <hr/>
-    </div>
-    <div id="footer">
-      <div class="xleft">Copyright &#169;                    2017
-                        <a href="http://www.apache.org">Apache Software Foundation</a>.
-
-
-       Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache Software License, Version 2.0</a>.</div>
-      <div class="xleft">Apache log4cxx, Apache, the Apache feather logo,
-   the Apache Logging Services project logo and the Built by Maven logo are trademarks of The Apache Software Foundation.</div>
-      <div class="clear">
-        <hr/>
-      </div>
-    </div>
-  </body>
-</html>
+					</td>
+				</tr>
+			</table>
+		</div>
+
+		<div class="footer">
+							<p>Copyright © 2003-2017 <a class="external" href="http://www.apache.org">Apache Software Foundation</a>. All Rights Reserved.</p>
+				<p>Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, and the Apache Logging project logo are trademarks of The Apache Software Foundation.</p>
+				<p>Site powered by <a class="external" href="http://getbootstrap.com/">Twitter Bootstrap</a>. Icons from <a class="external" href="http://glyphicons.com/">Glyphicons Free</a>.</p>
+		</div>
+	</body>
+</html>
\ No newline at end of file