Browse files

Create gh-pages branch via GitHub

  • Loading branch information...
1 parent b92c629 commit ebaa31155a3302573b4001321146be0d9d9c639a @rudionrails committed Jun 20, 2013
Showing with 19 additions and 10 deletions.
  1. +19 −10 index.html
@@ -37,7 +37,8 @@
<p><strong>If you want to use Yell with Rails, then head over to <a href="">yell-rails</a>.</strong></p>
+<a name="installation" class="anchor" href="#installation"><span class="octicon octicon-link"></span></a>Installation</h2>
<p>System wide:</p>
@@ -49,7 +50,8 @@
<div class="highlight"><pre><span class="n">gem</span> <span class="s2">"yell"</span>
+<a name="usage" class="anchor" href="#usage"><span class="octicon octicon-link"></span></a>Usage</h2>
<p>On the basics, you can use Yell just like any other logging library with a more
sophisticated message formatter.</p>
@@ -73,7 +75,8 @@
<p>Here are some short examples on how to combine them:</p>
-<h5>Example: Notice messages go into <code>STDOUT</code> and error messages into <code>STDERR</code>
+<a name="example-notice-messages-go-into-stdout-and-error-messages-into-stderr" class="anchor" href="#example-notice-messages-go-into-stdout-and-error-messages-into-stderr"><span class="octicon octicon-link"></span></a>Example: Notice messages go into <code>STDOUT</code> and error messages into <code>STDERR</code>
<div class="highlight"><pre><span class="n">logger</span> <span class="o">=</span> <span class="no">Yell</span><span class="o">.</span><span class="n">new</span> <span class="k">do</span> <span class="o">|</span><span class="n">l</span><span class="o">|</span>
@@ -82,7 +85,8 @@
<span class="k">end</span>
-<h5>Example: Typical production Logger</h5>
+<a name="example-typical-production-logger" class="anchor" href="#example-typical-production-logger"><span class="octicon octicon-link"></span></a>Example: Typical production Logger</h5>
<p>We setup a logger that starts passing messages at the <code>:info</code> level. Severities
below <code>:error</code> go into the 'production.log', whereas anything higher is written
@@ -96,7 +100,8 @@
<span class="k">end</span>
-<h3>But I'm used to Log4r and I don't want to move on</h3>
+<a name="but-im-used-to-log4r-and-i-dont-want-to-move-on" class="anchor" href="#but-im-used-to-log4r-and-i-dont-want-to-move-on"><span class="octicon octicon-link"></span></a>But I'm used to Log4r and I don't want to move on</h3>
<p>One of the really nice features of Log4r is its repository. The following example is
taken from the official Log4r <a href="">documentation</a>.</p>
@@ -126,7 +131,8 @@
<p>There is no need to define outputters separately and you don't have to taint
you global namespace with Yell's subclasses.</p>
-<h3>You want any class to have a logger?</h3>
+<a name="you-want-any-class-to-have-a-logger" class="anchor" href="#you-want-any-class-to-have-a-logger"><span class="octicon octicon-link"></span></a>You want any class to have a logger?</h3>
<p>Yell comes with a simple module: +Yell::Loggable+. Simply include this in a class and
you are good to go.</p>
@@ -136,7 +142,7 @@
<span class="no">Yell</span><span class="o">.</span><span class="n">new</span> <span class="ss">:stdout</span><span class="p">,</span> <span class="ss">:name</span> <span class="o">=&gt;</span> <span class="s1">'Foo'</span>
<span class="k">class</span> <span class="nc">Foo</span>
- <span class="kp">include</span> <span class="no">Yell</span><span class="o">::</span><span class="no">Loggable</span>
+ <span class="kp">include</span> <span class="ss">Yell</span><span class="p">:</span><span class="ss">:Loggable</span>
<span class="k">end</span>
<span class="c1"># Now you can log</span>
@@ -153,15 +159,18 @@
<span class="no">Bar</span><span class="o">.</span><span class="n">new</span><span class="o">.</span><span class="n">logger</span><span class="o">.</span><span class="n">info</span> <span class="s2">"Hello World"</span>
-<h2>Further Readings</h2>
+<a name="further-readings" class="anchor" href="#further-readings"><span class="octicon octicon-link"></span></a>Further Readings</h2>
<p><a href="">How To: Setting The Log Level</a><br><a href="">How To: Formatting Log Messages</a><br><a href="">How To: Using Adapters</a><br><a href="">How To: The Datefile Adapter</a><br><a href="">How To: Different Adapters for Different Log Levels</a> </p>
-<h3>Additional Adapters</h3>
+<a name="additional-adapters" class="anchor" href="#additional-adapters"><span class="octicon octicon-link"></span></a>Additional Adapters</h3>
<p><a href="">Syslog</a><br><a href="">Graylog2 (GELF)</a> </p>
+<a name="development" class="anchor" href="#development"><span class="octicon octicon-link"></span></a>Development</h3>
<p><a href="">How To: Writing Your Own Adapter</a> </p>

0 comments on commit ebaa311

Please sign in to comment.