docs/module-Logger.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>node-pm Module: Logger</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
<link type="text/css" rel="stylesheet" href="styles/site.cerulean.css">
</head>
<body>
<div class="container-fluid">
<div class="navbar navbar-fixed-top navbar-inverse">
<div class="navbar-inner">
<a class="brand" href="index.html">node-pm</a>
<ul class="nav">
<li class="dropdown">
<a href="modules.list.html" class="dropdown-toggle" data-toggle="dropdown">Modules<b
class="caret"></b></a>
<ul class="dropdown-menu ">
<li>
<a href="module-clusterEvents.html">clusterEvents</a>
</li>
<li>
<a href="module-Logger.html">Logger</a>
</li>
<li>
<a href="module-main.html">main</a>
</li>
<li>
<a href="module-master.html">master</a>
</li>
<li>
<a href="module-processEvents.html">processEvents</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="events.list.html" class="dropdown-toggle" data-toggle="dropdown">Events<b
class="caret"></b></a>
<ul class="dropdown-menu ">
<li>
<a href="module-master.html#event:shutdown">shutdown</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span8">
<div id="main">
<h1 class="page-title">Module: Logger</h1>
<section>
<header>
<h2>
Logger
</h2>
</header>
<article>
<div class="container-overview">
<div class="description"><p>A Simple Logger with levels</p></div>
<dl class="details">
<dt class="tag-author">Author:</dt>
<dd class="tag-author">
<ul>
<li><a href="mailto:ksmithson@sazze.com">Kevin Smithson</a></li>
</ul>
</dd>
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Logger.js.html">Logger.js</a>, <a href="Logger.js.html#sunlight-1-line-1">line 1</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Members</h3>
<dl>
<dt>
<h4 class="name" id="level"><span class="type-signature"><static> </span>level<span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>Set the level to use</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Logger.js.html">Logger.js</a>, <a href="Logger.js.html#sunlight-1-line-53">line 53</a>
</li></ul></dd>
</dl>
</dd>
<dt>
<h4 class="name" id="level"><span class="type-signature"><static> </span>level<span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>get the log level</p>
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Logger.js.html">Logger.js</a>, <a href="Logger.js.html#sunlight-1-line-63">line 63</a>
</li></ul></dd>
</dl>
</dd>
<dt>
<h4 class="name" id="levels"><span class="type-signature"><inner> </span>levels<span class="type-signature"> :Object</span></h4>
</dt>
<dd>
<div class="description">
<p>The levels of logs</p>
</div>
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Object</span>
</li>
</ul>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Logger.js.html">Logger.js</a>, <a href="Logger.js.html#sunlight-1-line-73">line 73</a>
</li></ul></dd>
</dl>
</dd>
</dl>
<h3 class="subsection-title">Methods</h3>
<dl>
<dt>
<h4 class="name" id="debug"><span class="type-signature"><static> </span>debug<span class="signature">(message)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>A debug log</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>message</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>the message</p></td>
</tr>
<tr>
<td class="name"><code>...</code></td>
<td class="type">
<span class="param-type">mixed</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="description last"><p>arguments to pass to log</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Logger.js.html">Logger.js</a>, <a href="Logger.js.html#sunlight-1-line-14">line 14</a>
</li></ul></dd>
</dl>
</dd>
<dt>
<h4 class="name" id="error"><span class="type-signature"><static> </span>error<span class="signature">(message)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>A error log</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>message</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>the message</p></td>
</tr>
<tr>
<td class="name"><code>...</code></td>
<td class="type">
<span class="param-type">mixed</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="description last"><p>arguments to pass to log</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Logger.js.html">Logger.js</a>, <a href="Logger.js.html#sunlight-1-line-44">line 44</a>
</li></ul></dd>
</dl>
</dd>
<dt>
<h4 class="name" id="info"><span class="type-signature"><static> </span>info<span class="signature">(message)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>A info log</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>message</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>the message</p></td>
</tr>
<tr>
<td class="name"><code>...</code></td>
<td class="type">
<span class="param-type">mixed</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="description last"><p>arguments to pass to log</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Logger.js.html">Logger.js</a>, <a href="Logger.js.html#sunlight-1-line-24">line 24</a>
</li></ul></dd>
</dl>
</dd>
<dt>
<h4 class="name" id="verbose"><span class="type-signature"><static> </span>verbose<span class="signature">(message)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>A verbose log</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>message</code></td>
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>the message</p></td>
</tr>
<tr>
<td class="name"><code>...</code></td>
<td class="type">
<span class="param-type">mixed</span>
</td>
<td class="attributes">
<optional><br>
</td>
<td class="description last"><p>arguments to pass to log</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Logger.js.html">Logger.js</a>, <a href="Logger.js.html#sunlight-1-line-34">line 34</a>
</li></ul></dd>
</dl>
</dd>
<dt>
<h4 class="name" id="log"><span class="type-signature"><private, inner> </span>log<span class="signature">(logLevel, prefix, args)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>The internal log function</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>logLevel</code></td>
<td class="type">
<span class="param-type">int</span>
</td>
<td class="description last"><p>the log level that is allowed</p></td>
</tr>
<tr>
<td class="name"><code>prefix</code></td>
<td class="type">
</td>
<td class="description last"><p>the prefix that gets prepended to the message</p></td>
</tr>
<tr>
<td class="name"><code>args</code></td>
<td class="type">
</td>
<td class="description last"><p>and object of arguments, usually from global [arguments]</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="Logger.js.html">Logger.js</a>, <a href="Logger.js.html#sunlight-1-line-95">line 95</a>
</li></ul></dd>
</dl>
</dd>
</dl>
</article>
</section>
</div>
<div class="clearfix"></div>
<footer>
<span class="copyright">
Sazze, Inc Copyright © 2012-2013
</span>
<br />
<span class="jsdoc-message">
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha9</a>
on Thu Sep 11 2014 11:45:56 GMT-0700 (PDT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span>
</footer>
</div>
<div class="span3">
<div id="toc"></div>
</div>
<br clear="both">
</div>
</div>
<script src="scripts/sunlight.js"></script>
<script src="scripts/sunlight.javascript.js"></script>
<script src="scripts/sunlight-plugin.doclinks.js"></script>
<script src="scripts/sunlight-plugin.linenumbers.js"></script>
<script src="scripts/sunlight-plugin.menu.js"></script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/jquery.scrollTo.js"></script>
<script src="scripts/jquery.localScroll.js"></script>
<script src="scripts/bootstrap-dropdown.js"></script>
<script src="scripts/toc.js"></script>
<script> Sunlight.highlightAll({lineNumbers:true, showMenu: true, enableDoclinks :true}); </script>
<script>
$( function () {
$( "#toc" ).toc( {
selectors : "h1,h2,h3,h4",
showAndHide : false,
scrollTo : 60
} );
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
} );
</script>
</body>
</html>