This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
speedclock/Arduino_Libs/Arduino-logging-library-master/doc/html/_logging_8h-source.html

77 lines
7.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Logging: K:/Projekte/robotic/arduino/arduino_1-0Patch/libraries/Logging/Logging.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<h1>K:/Projekte/robotic/arduino/arduino_1-0Patch/libraries/Logging/Logging.h</h1><a href="_logging_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef LOGGING_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define LOGGING_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span><span class="preprocessor">#include &lt;inttypes.h&gt;</span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdarg.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#if defined(ARDUINO) &amp;&amp; ARDUINO &gt;= 100</span>
<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor"> #include "Arduino.h"</span>
<a name="l00007"></a>00007 <span class="preprocessor">#else</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor"> #include "WProgram.h"</span>
<a name="l00009"></a>00009 <span class="preprocessor">#endif</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="comment">//#include "pins_arduino.h"</span>
<a name="l00011"></a>00011 <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
<a name="l00012"></a>00012 <span class="preprocessor"> #include &lt;avr/io.h&gt;</span>
<a name="l00013"></a>00013 }
<a name="l00014"></a>00014
<a name="l00015"></a>00015
<a name="l00016"></a><a class="code" href="_logging_8h.html#33ec8ee51526c3b2008ed92830c1da16">00016</a> <span class="preprocessor">#define LOG_LEVEL_NOOUTPUT 0 </span>
<a name="l00017"></a><a class="code" href="_logging_8h.html#ec8706c3ef9b186e438cccf4a02ccc78">00017</a> <span class="preprocessor"></span><span class="preprocessor">#define LOG_LEVEL_ERRORS 1</span>
<a name="l00018"></a><a class="code" href="_logging_8h.html#660a0bd19f239a2e586f9a432395289e">00018</a> <span class="preprocessor"></span><span class="preprocessor">#define LOG_LEVEL_INFOS 2</span>
<a name="l00019"></a><a class="code" href="_logging_8h.html#130224df8c6bf22a688e3cb74a45689a">00019</a> <span class="preprocessor"></span><span class="preprocessor">#define LOG_LEVEL_DEBUG 3</span>
<a name="l00020"></a><a class="code" href="_logging_8h.html#7d2f762be61df3727748e69e4ff197c2">00020</a> <span class="preprocessor"></span><span class="preprocessor">#define LOG_LEVEL_VERBOSE 4</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="comment">// default loglevel if nothing is set from user</span>
<a name="l00023"></a><a class="code" href="_logging_8h.html#6c6fd5e242df15a7a42e9b75d55d5d3c">00023</a> <span class="preprocessor">#define LOGLEVEL LOG_LEVEL_DEBUG </span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025
<a name="l00026"></a><a class="code" href="_logging_8h.html#876ce77f3c672c7162658151e648389e">00026</a> <span class="preprocessor">#define CR "\r\n"</span>
<a name="l00027"></a><a class="code" href="_logging_8h.html#7e6435a637199b392c536e50a8334d32">00027</a> <span class="preprocessor"></span><span class="preprocessor">#define LOGGING_VERSION 1</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span>
<a name="l00071"></a><a class="code" href="class_logging.html">00071</a> <span class="keyword">class </span><a class="code" href="class_logging.html">Logging</a> {
<a name="l00072"></a>00072 <span class="keyword">private</span>:
<a name="l00073"></a><a class="code" href="class_logging.html#117105f639285ba5922836121294c04a">00073</a> <span class="keywordtype">int</span> <a class="code" href="class_logging.html#117105f639285ba5922836121294c04a">_level</a>;
<a name="l00074"></a><a class="code" href="class_logging.html#8a2fe833b6e957b763146c32d6be5f2d">00074</a> <span class="keywordtype">long</span> <a class="code" href="class_logging.html#8a2fe833b6e957b763146c32d6be5f2d">_baud</a>;
<a name="l00075"></a>00075 <span class="keyword">public</span>:
<a name="l00079"></a><a class="code" href="class_logging.html#cc3d848a3d05076fd185cd95e9c648d5">00079</a> <a class="code" href="class_logging.html#cc3d848a3d05076fd185cd95e9c648d5">Logging</a>(){} ;
<a name="l00080"></a>00080
<a name="l00087"></a>00087 <span class="keywordtype">void</span> <a class="code" href="class_logging.html#f6a890a6feac5bf93b04cb22db7bd530">Init</a>(<span class="keywordtype">int</span> level, <span class="keywordtype">long</span> baud);
<a name="l00088"></a>00088
<a name="l00098"></a>00098 <span class="keywordtype">void</span> <a class="code" href="class_logging.html#1cf44ab531c72761fba811882336a2ad">Error</a>(<span class="keywordtype">char</span>* msg, ...);
<a name="l00099"></a>00099
<a name="l00110"></a>00110 <span class="keywordtype">void</span> <a class="code" href="class_logging.html#8a99e1a55e2b24d864d89e9aa86b2f2e">Info</a>(<span class="keywordtype">char</span>* msg, ...);
<a name="l00111"></a>00111
<a name="l00122"></a>00122 <span class="keywordtype">void</span> <a class="code" href="class_logging.html#e0fcd9e5350d7b9158c8ae9289fef193">Debug</a>(<span class="keywordtype">char</span>* msg, ...);
<a name="l00123"></a>00123
<a name="l00134"></a>00134 <span class="keywordtype">void</span> <a class="code" href="class_logging.html#2ae6a981ea685c851b87cf4c1ec2fb8f">Verbose</a>(<span class="keywordtype">char</span>* msg, ...);
<a name="l00135"></a>00135
<a name="l00136"></a>00136
<a name="l00137"></a>00137 <span class="keyword">private</span>:
<a name="l00138"></a>00138 <span class="keywordtype">void</span> <a class="code" href="class_logging.html#714840794950ab31df5da5b95322e391">print</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *format, va_list args);
<a name="l00139"></a>00139 };
<a name="l00140"></a>00140
<a name="l00141"></a>00141 <span class="keyword">extern</span> <a class="code" href="class_logging.html">Logging</a> <a class="code" href="_logging_8cpp.html#f8164407f3289dde66d36070af4244c1">Log</a>;
<a name="l00142"></a>00142 <span class="preprocessor">#endif</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span>
<a name="l00144"></a>00144
<a name="l00145"></a>00145
<a name="l00146"></a>00146
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Mar 6 20:17:24 2012 for Logging by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>