Files
dotfiles/cabal/share/doc/x86_64-osx-ghc-7.10.1/hslogger-1.2.8/html/System-Log-Handler-Simple.html
2015-04-05 17:47:08 +02:00

10 lines
9.0 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>System.Log.Handler.Simple</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_System-Log-Handler-Simple.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">hslogger-1.2.8: Versatile logging framework</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2004-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen &lt;jgoerzen@complete.org&gt; </td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.Log.Handler.Simple</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Simple log handlers</p><p>Written by John Goerzen, jgoerzen@complete.org</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:streamHandler">streamHandler</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="System-Log.html#t:Priority">Priority</a> -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> (<a href="System-Log-Handler-Simple.html#t:GenericHandler">GenericHandler</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/GHC-IO-Handle.html#t:Handle">Handle</a>)</li><li class="src short"><a href="#v:fileHandler">fileHandler</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="System-Log.html#t:Priority">Priority</a> -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> (<a href="System-Log-Handler-Simple.html#t:GenericHandler">GenericHandler</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/GHC-IO-Handle.html#t:Handle">Handle</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:GenericHandler">GenericHandler</a> a = <a href="#v:GenericHandler">GenericHandler</a> {<ul class="subs"><li><a href="#v:priority">priority</a> :: <a href="System-Log.html#t:Priority">Priority</a></li><li><a href="#v:formatter">formatter</a> :: <a href="System-Log-Formatter.html#t:LogFormatter">LogFormatter</a> (<a href="System-Log-Handler-Simple.html#t:GenericHandler">GenericHandler</a> a)</li><li><a href="#v:privData">privData</a> :: a</li><li><a href="#v:writeFunc">writeFunc</a> :: a -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li><li><a href="#v:closeFunc">closeFunc</a> :: a -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</li></ul>}</li><li class="src short"><a href="#v:verboseStreamHandler">verboseStreamHandler</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="System-Log.html#t:Priority">Priority</a> -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> (<a href="System-Log-Handler-Simple.html#t:GenericHandler">GenericHandler</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/GHC-IO-Handle.html#t:Handle">Handle</a>)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:streamHandler" class="def">streamHandler</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="System-Log.html#t:Priority">Priority</a> -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> (<a href="System-Log-Handler-Simple.html#t:GenericHandler">GenericHandler</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/GHC-IO-Handle.html#t:Handle">Handle</a>)</p><div class="doc"><p>Create a stream log handler. Log messages sent to this handler will
be sent to the stream used initially. Note that the <code><a href="System-Log-Handler.html#v:close">close</a></code> method
will have no effect on stream handlers; it does not actually close
the underlying stream. </p></div></div><div class="top"><p class="src"><a name="v:fileHandler" class="def">fileHandler</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="System-Log.html#t:Priority">Priority</a> -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> (<a href="System-Log-Handler-Simple.html#t:GenericHandler">GenericHandler</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/GHC-IO-Handle.html#t:Handle">Handle</a>)</p><div class="doc"><p>Create a file log handler. Log messages sent to this handler
will be sent to the filename specified, which will be opened
in Append mode. Calling <code><a href="System-Log-Handler.html#v:close">close</a></code> on the handler will close the file.</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:GenericHandler" class="def">GenericHandler</a> a</p><div class="doc"><p>A helper data type. </p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:GenericHandler" class="def">GenericHandler</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><dl><dt class="src"><a name="v:priority" class="def">priority</a> :: <a href="System-Log.html#t:Priority">Priority</a></dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:formatter" class="def">formatter</a> :: <a href="System-Log-Formatter.html#t:LogFormatter">LogFormatter</a> (<a href="System-Log-Handler-Simple.html#t:GenericHandler">GenericHandler</a> a)</dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:privData" class="def">privData</a> :: a</dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:writeFunc" class="def">writeFunc</a> :: a -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</dt><dd class="doc empty">&nbsp;</dd><dt class="src"><a name="v:closeFunc" class="def">closeFunc</a> :: a -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> ()</dt><dd class="doc empty">&nbsp;</dd></dl><div class="clear"></div></div></td></tr></table></div><div class="subs instances"><p id="control.i:GenericHandler" class="caption collapser" onclick="toggleSection('i:GenericHandler')">Instances</p><div id="section.i:GenericHandler" class="show"><table><tr><td class="src"><a href="System-Log-Handler.html#t:LogHandler">LogHandler</a> (<a href="System-Log-Handler-Simple.html#t:GenericHandler">GenericHandler</a> a)</td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:verboseStreamHandler" class="def">verboseStreamHandler</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/GHC-IO-Handle.html#t:Handle">Handle</a> -&gt; <a href="System-Log.html#t:Priority">Priority</a> -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/System-IO.html#t:IO">IO</a> (<a href="System-Log-Handler-Simple.html#t:GenericHandler">GenericHandler</a> <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/GHC-IO-Handle.html#t:Handle">Handle</a>)</p><div class="doc"><p>Like <code><a href="System-Log-Handler-Simple.html#v:streamHandler">streamHandler</a></code>, but note the priority and logger name along
with each message. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>