irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

rsLog.hpp
Go to the documentation of this file.
1 
3 /* rsLog.h - header file for rsLog.c
4  */
5 
6 #ifndef RS_LOG_HPP
7 #define RS_LOG_HPP
8 
9 #include "rods.h"
10 
11 #define RODS_LOGFILE "rodsLog"
12 #define RODS_SERVER_LOGFILE "rodsServerLog"
13 #define RULE_EXEC_LOGFILE "reLog"
14 #define XMSG_SVR_LOGFILE "xmsgLog"
15 
16 #define DEF_LOG_DIR "../../var/lib/irods/log"
17 #define PROC_LOG_DIR_NAME "proc"
18 // =-=-=-=-=-=-=-
19 // JMC - backport 4793
20 #define DEF_LOGFILE_INT 5 /* default interval in days */
21 #define LOGFILE_INT "logfileInt" /* interval in days for new log file */
22 
23 
24 #define LOGFILE_CHK_INT 1800 /* Interval in sec for checking logFile */
25 #define LOGFILE_CHK_CNT 50 /* number of times through the loop before
26 * chkLogfileName is called */
27 #define DEF_LOGFILE_PATTERN "%Y.%m.%d" /* default pattern in strftime syntax */
28 #define LOGFILE_PATTERN "logfilePattern" /* pattern for new name of log file */
29 // =-=-=-=-=-=-=-
30 
31 #include <sys/types.h>
32 #include <sys/stat.h>
33 #include <fcntl.h>
34 
35 char *
36 getLogDir();
37 
38 void
39 getLogfileName( char **logFile, const char *logDir, const char *logFileName );
40 
41 int chkLogfileName( const char *logDir, const char *logFileName );
42 
43 #endif /* RS_LOG_H */
chkLogfileName
int chkLogfileName(const char *logDir, const char *logFileName)
Definition: rsLog.cpp:88
getLogDir
char * getLogDir()
Definition: rsLog.cpp:12
getLogfileName
void getLogfileName(char **logFile, const char *logDir, const char *logFileName)
Definition: rsLog.cpp:45
rods.h