Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > c67c6057ffd14254a26624517a2352e6 > files > 182

i3-doc-3.e-3.bf1.fc14.noarch.rpm

<!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/xhtml;charset=UTF-8"/>
<title>i3: include/log.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.2-20100208 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>include/log.h</h1><a href="a00044.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * vim:ts=8:expandtab</span>
<a name="l00003"></a>00003 <span class="comment"> *</span>
<a name="l00004"></a>00004 <span class="comment"> * i3 - an improved dynamic tiling window manager</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * © 2009-2010 Michael Stapelberg and contributors</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * See file LICENSE for license information.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> */</span>
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef _LOG_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define _LOG_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;stdarg.h&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00016"></a>00016 
<a name="l00019"></a><a class="code" href="a00044.html#a388edf12256bf73c3a8ee9734c3bd841">00019</a> <span class="preprocessor">#define LOG(fmt, ...) verboselog(fmt, ##__VA_ARGS__)</span>
<a name="l00020"></a><a class="code" href="a00044.html#a6828c68e0feb4b7fdfe0fc3ba9f3038b">00020</a> <span class="preprocessor"></span><span class="preprocessor">#define ELOG(fmt, ...) errorlog(&quot;ERROR: &quot; fmt, ##__VA_ARGS__)</span>
<a name="l00021"></a><a class="code" href="a00044.html#a287e239c800086178591f5e53f5bb82c">00021</a> <span class="preprocessor"></span><span class="preprocessor">#define DLOG(fmt, ...) debuglog(LOGLEVEL, &quot;%s:%s:%d - &quot; fmt, __FILE__, __FUNCTION__, __LINE__, ##__VA_ARGS__)</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00023"></a>00023 <span class="keyword">extern</span> <span class="keywordtype">char</span> *<a class="code" href="a00044.html#aea3c9cd7c28ac0ebbc7473771751ed92">loglevels</a>[];
<a name="l00024"></a>00024 
<a name="l00029"></a>00029 <span class="keywordtype">void</span> <a class="code" href="a00070.html#a71ad89f7f5c5c75b215dfa26a9c1bc43" title="Enables the given loglevel.">add_loglevel</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *level);
<a name="l00030"></a>00030 
<a name="l00037"></a>00037 <span class="keywordtype">void</span> <a class="code" href="a00070.html#a9aeb8f383a036722d9213b750e90703d" title="Set verbosity of i3.">set_verbosity</a>(<span class="keywordtype">bool</span> _verbose);
<a name="l00038"></a>00038 
<a name="l00044"></a>00044 <span class="keywordtype">void</span> <a class="code" href="a00070.html#a04d84deb5a91e34d07c90e99cc8a35bd" title="Logs the given message to stdout while prefixing the current time to it, but only...">debuglog</a>(<span class="keywordtype">int</span> lev, <span class="keywordtype">char</span> *fmt, ...);
<a name="l00045"></a>00045 
<a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="a00070.html#a04ee816a9140e8e8bbd4b1892e25f6ef" title="Logs the given message to stdout while prefixing the current time to it.">errorlog</a>(<span class="keywordtype">char</span> *fmt, ...);
<a name="l00051"></a>00051 
<a name="l00057"></a>00057 <span class="keywordtype">void</span> <a class="code" href="a00070.html#a8e31d2a541996fabe1a0f7086886f9b1" title="Logs the given message to stdout while prefixing the current time to it, but only...">verboselog</a>(<span class="keywordtype">char</span> *fmt, ...);
<a name="l00058"></a>00058 
<a name="l00064"></a>00064 <span class="keywordtype">void</span> <a class="code" href="a00044.html#a1de34cb93bf66bea93f4d510c13d4353" title="Logs the given message to stdout while prefixing the current time to it.">slog</a>(<span class="keywordtype">char</span> *fmt, va_list args);
<a name="l00065"></a>00065 
<a name="l00066"></a>00066 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address>
</body>
</html>