8 lines
5.6 KiB
HTML
8 lines
5.6 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</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.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 <jgoerzen@complete.org> </td></tr><tr><th>Stability</th><td>experimental</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</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Types</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Haskell Logging Framework</p><p>Written by John Goerzen, jgoerzen@complete.org</p><p>This module defines basic types used for logging.</p><p>Extensive documentation is available in
|
|
<a href="System-Log-Logger.html">System.Log.Logger</a>.</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"><span class="keyword">data</span> <a href="#t:Priority">Priority</a><ul class="subs"><li>= <a href="#v:DEBUG">DEBUG</a></li><li>| <a href="#v:INFO">INFO</a></li><li>| <a href="#v:NOTICE">NOTICE</a></li><li>| <a href="#v:WARNING">WARNING</a></li><li>| <a href="#v:ERROR">ERROR</a></li><li>| <a href="#v:CRITICAL">CRITICAL</a></li><li>| <a href="#v:ALERT">ALERT</a></li><li>| <a href="#v:EMERGENCY">EMERGENCY</a></li></ul></li><li class="src short"><span class="keyword">type</span> <a href="#t:LogRecord">LogRecord</a> = (<a href="System-Log.html#t:Priority">Priority</a>, <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>)</li></ul></div><div id="interface"><h1 id="g:1">Types</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Priority" class="def">Priority</a></p><div class="doc"><p>Priorities are used to define how important a log message is.
|
|
Users can filter log messages based on priorities.</p><p>These have their roots on the traditional syslog system. The standard
|
|
definitions are given below, but you are free to interpret them however you
|
|
like. They are listed here in ascending importance order.</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:DEBUG" class="def">DEBUG</a></td><td class="doc"><p>Debug messages</p></td></tr><tr><td class="src"><a name="v:INFO" class="def">INFO</a></td><td class="doc"><p>Information</p></td></tr><tr><td class="src"><a name="v:NOTICE" class="def">NOTICE</a></td><td class="doc"><p>Normal runtime conditions</p></td></tr><tr><td class="src"><a name="v:WARNING" class="def">WARNING</a></td><td class="doc"><p>General Warnings</p></td></tr><tr><td class="src"><a name="v:ERROR" class="def">ERROR</a></td><td class="doc"><p>General Errors</p></td></tr><tr><td class="src"><a name="v:CRITICAL" class="def">CRITICAL</a></td><td class="doc"><p>Severe situations</p></td></tr><tr><td class="src"><a name="v:ALERT" class="def">ALERT</a></td><td class="doc"><p>Take immediate action</p></td></tr><tr><td class="src"><a name="v:EMERGENCY" class="def">EMERGENCY</a></td><td class="doc"><p>System is unusable</p></td></tr></table></div><div class="subs instances"><p id="control.i:Priority" class="caption collapser" onclick="toggleSection('i:Priority')">Instances</p><div id="section.i:Priority" class="show"><table><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="System-Log.html#t:Priority">Priority</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Ord.html#t:Ord">Ord</a> <a href="System-Log.html#t:Priority">Priority</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Read.html#t:Read">Read</a> <a href="System-Log.html#t:Priority">Priority</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Text-Show.html#t:Show">Show</a> <a href="System-Log.html#t:Priority">Priority</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:LogRecord" class="def">LogRecord</a> = (<a href="System-Log.html#t:Priority">Priority</a>, <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>)</p><div class="doc"><p>Internal type of log records </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> |