4b5c60499a669daf5d56fd4424b6c7dac68363b6.svn-base
5.36 KB
<!DOCTYPE html> <html> <head> <title>loggly.js</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To … <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="loggly/common.html"> loggly/common.html </a> <a class="source" href="loggly/config.html"> loggly/config.html </a> <a class="source" href="loggly/core.html"> loggly/core.html </a> <a class="source" href="loggly/device.html"> loggly/device.html </a> <a class="source" href="loggly/facet.html"> loggly/facet.html </a> <a class="source" href="loggly/input.html"> loggly/input.html </a> <a class="source" href="loggly/search.html"> loggly/search.html </a> <a class="source" href="loggly.html"> loggly.html </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> loggly.js </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">¶</a> </div> </td> <td class="code"> <div class="highlight"><pre><span class="cm">/*</span>
<span class="cm"> * loggly.js: Wrapper for node-loggly object</span>
<span class="cm"> *</span>
<span class="cm"> * (C) 2010 Nodejitsu Inc.</span>
<span class="cm"> * MIT LICENSE</span>
<span class="cm"> *</span>
<span class="cm"> */</span>
<span class="kd">var</span> <span class="nx">loggly</span> <span class="o">=</span> <span class="nx">exports</span><span class="p">;</span></pre></div> </td> </tr> <tr id="section-2"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-2">¶</a> </div> <p>Export node-loggly core client APIs</p> </td> <td class="code"> <div class="highlight"><pre><span class="nx">loggly</span><span class="p">.</span><span class="nx">createClient</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">'./loggly/core'</span><span class="p">).</span><span class="nx">createClient</span><span class="p">;</span>
<span class="nx">loggly</span><span class="p">.</span><span class="nx">Loggly</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">'./loggly/core'</span><span class="p">).</span><span class="nx">Loggly</span><span class="p">;</span>
<span class="nx">loggly</span><span class="p">.</span><span class="nx">Config</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">'./loggly/config'</span><span class="p">).</span><span class="nx">Config</span><span class="p">;</span></pre></div> </td> </tr> <tr id="section-3"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-3">¶</a> </div> <p>Export Resources for node-loggly</p> </td> <td class="code"> <div class="highlight"><pre><span class="nx">loggly</span><span class="p">.</span><span class="nx">Input</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">'./loggly/input'</span><span class="p">).</span><span class="nx">Input</span><span class="p">;</span>
<span class="nx">loggly</span><span class="p">.</span><span class="nx">Facet</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">'./loggly/facet'</span><span class="p">).</span><span class="nx">Facet</span><span class="p">;</span>
<span class="nx">loggly</span><span class="p">.</span><span class="nx">Device</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">'./loggly/device'</span><span class="p">).</span><span class="nx">Device</span><span class="p">;</span>
<span class="nx">loggly</span><span class="p">.</span><span class="nx">Search</span> <span class="o">=</span> <span class="nx">require</span><span class="p">(</span><span class="s1">'./loggly/search'</span><span class="p">).</span><span class="nx">Search</span><span class="p">;</span>
</pre></div> </td> </tr> </tbody> </table> </div> </body> </html>