/*** Copyright (c), The Regents of the University of California *** *** For more information please refer to files in the COPYRIGHT directory ***/ /* rsLog.h - header file for rsLog.c */ #ifndef RS_LOG_H #define RS_LOG_H #include "rods.h" #define RODS_LOGFILE "rodsLog" #define RULE_EXEC_LOGFILE "reLog" #define XMSG_SVR_LOGFILE "xmsgLog" #ifndef DEF_CONFIG_DIR #define DEF_CONFIG_DIR "../config" #endif #ifndef DEF_STATE_DIR #define DEF_STATE_DIR "../config" #endif #ifndef DEF_LOG_DIR #define DEF_LOG_DIR "../log" #endif #define PROC_LOG_DIR_NAME "proc" #define DEF_LOGFILE_INT 5 /* default interval in days */ #define LOGFILE_INT "logfileInt" /* interval in days for new log file */ #define LOGFILE_CHK_INT 1800 /* Interval in sec for checking logFile */ #define LOGFILE_CHK_CNT 50 /* number of times through the loop before * chkLogfileName is called */ #define DEF_LOGFILE_PATTERN "%Y.%m.%d" /* default pattern in strftime syntax */ #define LOGFILE_PATTERN "logfilePattern" /* pattern for new name of log file */ #include #include #include void getLogfileName (char **logFile, char *logDir, char *logFileName); #ifndef _WIN32 int chkLogfileName (char *logDir, char *logFileName); #endif #endif /* RS_LOG_H */