[slf4j-dev] svn commit: r1321 - slf4j/trunk/slf4j-site/src/site/pages
ravn at slf4j.org
ravn at slf4j.org
Sun Apr 19 02:23:53 CEST 2009
Author: ravn
Date: Sun Apr 19 02:23:53 2009
New Revision: 1321
Modified:
slf4j/trunk/slf4j-site/src/site/pages/manual.html
Log:
experimental colorized version of HelloWorld.java
Modified: slf4j/trunk/slf4j-site/src/site/pages/manual.html
==============================================================================
--- slf4j/trunk/slf4j-site/src/site/pages/manual.html (original)
+++ slf4j/trunk/slf4j-site/src/site/pages/manual.html Sun Apr 19 02:23:53 2009
@@ -36,7 +36,7 @@
the source code.
</p>
- <pre class="source">import org.slf4j.Logger;
+<!-- <pre class="source">import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class HelloWorld {
@@ -45,6 +45,16 @@
logger.info("Hello World");
}
}</pre>
+-->
+<pre class="source"><font color="#1773cc">import</font> org.slf4j.Logger;
+<font color="#1773cc">import</font> org.slf4j.LoggerFactory;
+
+<font color="#008b00"><b>public</b></font> <font color="#008b00"><b>class</b></font> HelloWorld {
+ <font color="#008b00"><b>public</b></font> <font color="#008b00"><b>static</b></font> <font color="#008b00"><b>void</b></font> main(String[] args) {
+ Logger logger = LoggerFactory.getLogger(HelloWorld.<font color="#008b00"><b>class</b></font>);
+ logger.info(<font color="#4a6f8b">"Hello World"</font>);
+ }
+}</font></pre>
<p>To run this example, you first need to <a
href="download.html">download the slf4j distribution</a>, and
More information about the slf4j-dev
mailing list