00001 #ifndef __logging_time_h__ 00002 #define __logging_time_h__ 00003 00004 #include "common/logging_c.h" 00005 00006 #include <time.h> 00007 00008 #ifdef __cplusplus 00009 extern "C" { 00010 #endif 00011 00012 #if __DO_LOGGING__ 00013 void log_time_f(const char *logfile, time_t t); 00014 #else 00015 #define log_time_f(f,t) ((void)0) 00016 #endif 00017 00018 #define log_time(t) log_time_f(PRIMARY_LOG_FILENAME, t) 00019 00020 #ifdef __cplusplus 00021 } /* extern "C" */ 00022 #endif 00023 00024 #endif /* __logging_time_h__ */ 00025 00026 /** 00027 00028 logging-time.h 00029 00030 Copyright 2009 Helsinki Institute for Information Technology (HIIT) 00031 and the authors. All rights reserved. 00032 00033 Authors: Tero Hasu <tero.hasu@hut.fi> 00034 00035 Permission is hereby granted, free of charge, to any person 00036 obtaining a copy of this software and associated documentation files 00037 (the "Software"), to deal in the Software without restriction, 00038 including without limitation the rights to use, copy, modify, merge, 00039 publish, distribute, sublicense, and/or sell copies of the Software, 00040 and to permit persons to whom the Software is furnished to do so, 00041 subject to the following conditions: 00042 00043 The above copyright notice and this permission notice shall be 00044 included in all copies or substantial portions of the Software. 00045 00046 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00047 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00048 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00049 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00050 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00051 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00052 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00053 SOFTWARE. 00054 00055 **/
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:54 2011 by Doxygen 1.6.1