<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.5"/> <title>open-vm-tools 9.4.0: lib/include/vmware/tools/log.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">open-vm-tools 9.4.0 </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li><li class="navelem"><a class="el" href="dir_5a30104352ef4255dc24354b02eb2d20.html">include</a></li><li class="navelem"><a class="el" href="dir_1ae46aceb4fd0d0c4a241d08c8eb4ed3.html">vmware</a></li><li class="navelem"><a class="el" href="dir_93b95978f0d6069d74a14c562abea915.html">tools</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">log.h</div> </div> </div><!--header--> <div class="contents"> <a href="log_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*********************************************************</span></div> <div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (C) 2011 VMware, Inc. All rights reserved.</span></div> <div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div> <div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * This program is free software; you can redistribute it and/or modify it</span></div> <div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * under the terms of the GNU Lesser General Public License as published</span></div> <div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * by the Free Software Foundation version 2.1 and no later version.</span></div> <div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> *</span></div> <div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * This program is distributed in the hope that it will be useful, but</span></div> <div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY</span></div> <div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public</span></div> <div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * License for more details.</span></div> <div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> *</span></div> <div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * You should have received a copy of the GNU Lesser General Public License</span></div> <div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * along with this program; if not, write to the Free Software Foundation, Inc.,</span></div> <div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.</span></div> <div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> *</span></div> <div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> *********************************************************/</span></div> <div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div> <div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#ifndef _VMTOOLS_LOG_H_</span></div> <div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor"></span><span class="preprocessor">#define _VMTOOLS_LOG_H_</span></div> <div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="preprocessor">#if !defined(G_LOG_DOMAIN)</span></div> <div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="preprocessor"></span><span class="preprocessor"># error "G_LOG_DOMAIN must be defined."</span></div> <div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div> <div class="line"><a name="l00115"></a><span class="lineno"> 115</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="preprocessor">#include <glib.h></span></div> <div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div> <div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="preprocessor">#if defined(__GNUC__)</span></div> <div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="preprocessor"></span><span class="preprocessor"># define FUNC __func__</span></div> <div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="preprocessor"></span><span class="preprocessor">#else</span></div> <div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="preprocessor"></span><span class="preprocessor"># define FUNC __FUNCTION__</span></div> <div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="preprocessor"></span><span class="preprocessor">#endif</span></div> <div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment">/*</span></div> <div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment"> *******************************************************************************</span></div> <div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment"> * g_info -- */</span> </div> <div class="line"><a name="l00137"></a><span class="lineno"><a class="line" href="group__vmtools__logging.html#ga70ba83e48efbb05f34086febacc73a1d"> 137</a></span> <span class="preprocessor">#define g_info(fmt, ...) g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, fmt, ## __VA_ARGS__)</span></div> <div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div> <div class="line"><a name="l00140"></a><span class="lineno"> 140</span> <span class="comment">/*</span></div> <div class="line"><a name="l00141"></a><span class="lineno"> 141</span> <span class="comment"> *******************************************************************************</span></div> <div class="line"><a name="l00142"></a><span class="lineno"> 142</span> <span class="comment"> * vm_{critical,debug,error,info,message,warning} -- */</span> </div> <div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="group__vmtools__logging.html#ga9e18287dc7c31eb280a776e7ca0842f3"> 154</a></span> <span class="preprocessor">#define vm_critical(fmt, ...) g_critical("%s: " fmt, FUNC, ## __VA_ARGS__)</span></div> <div class="line"><a name="l00155"></a><span class="lineno"> 155</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="group__vmtools__logging.html#ga4b4b57811a8b98e84f3264fff739a7f3"> 157</a></span> <span class="preprocessor">#define vm_debug(fmt, ...) g_debug("%s: " fmt, FUNC, ## __VA_ARGS__)</span></div> <div class="line"><a name="l00158"></a><span class="lineno"> 158</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="group__vmtools__logging.html#ga110b31400dcfd1ceb4e0db5a0f94f620"> 160</a></span> <span class="preprocessor">#define vm_error(fmt, ...) g_error("%s: " fmt, FUNC, ## __VA_ARGS__)</span></div> <div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00163"></a><span class="lineno"><a class="line" href="group__vmtools__logging.html#ga1db45780168d7e5170bf035d82464988"> 163</a></span> <span class="preprocessor">#define vm_info(fmt, ...) g_info("%s: " fmt, FUNC, ## __VA_ARGS__)</span></div> <div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="group__vmtools__logging.html#ga2d67df6d33c5a345aa7fe31f2e00eb57"> 166</a></span> <span class="preprocessor">#define vm_message(fmt, ...) g_message("%s: " fmt, FUNC, ## __VA_ARGS__)</span></div> <div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="group__vmtools__logging.html#ga45c1b487669dbd0414012a663a48bcaf"> 169</a></span> <span class="preprocessor">#define vm_warning(fmt, ...) g_warning("%s: " fmt, FUNC, ## __VA_ARGS__)</span></div> <div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="preprocessor"></span></div> <div class="line"><a name="l00171"></a><span class="lineno"> 171</span> G_BEGIN_DECLS</div> <div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div> <div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="keywordtype">void</span></div> <div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <a class="code" href="group__vmtools__logging.html#gadde2056a5a855f11ab1577a7373b81e1">VMTools_ConfigLogging</a>(<span class="keyword">const</span> gchar *defaultDomain,</div> <div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  GKeyFile *cfg,</div> <div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  gboolean force,</div> <div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  gboolean reset);</div> <div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div> <div class="line"><a name="l00179"></a><span class="lineno"> 179</span> G_END_DECLS</div> <div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div> <div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span class="preprocessor">#endif </span><span class="comment">/* _VMTOOLS_LOG_H_ */</span><span class="preprocessor"></span></div> <div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="preprocessor"></span></div> <div class="ttc" id="group__vmtools__logging_html_gadde2056a5a855f11ab1577a7373b81e1"><div class="ttname"><a href="group__vmtools__logging.html#gadde2056a5a855f11ab1577a7373b81e1">VMTools_ConfigLogging</a></div><div class="ttdeci">G_BEGIN_DECLS void VMTools_ConfigLogging(const gchar *defaultDomain, GKeyFile *cfg, gboolean force, gboolean reset)</div><div class="ttdef"><b>Definition:</b> vmtoolsLog.c:669</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Wed Nov 13 2013 17:04:40 for open-vm-tools 9.4.0 by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.5 </small></address> </body> </html>