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 File Reference
#include "rods.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
Include dependency graph for rsLog.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RODS_LOGFILE   "rodsLog"
 
#define RODS_SERVER_LOGFILE   "rodsServerLog"
 
#define RULE_EXEC_LOGFILE   "reLog"
 
#define XMSG_SVR_LOGFILE   "xmsgLog"
 
#define DEF_LOG_DIR   "../../var/lib/irods/log"
 
#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
 
#define DEF_LOGFILE_PATTERN   "%Y.%m.%d" /* default pattern in strftime syntax */
 
#define LOGFILE_PATTERN   "logfilePattern" /* pattern for new name of log file */
 

Functions

char * getLogDir ()
 
void getLogfileName (char **logFile, const char *logDir, const char *logFileName)
 
int chkLogfileName (const char *logDir, const char *logFileName)
 

Macro Definition Documentation

◆ DEF_LOG_DIR

#define DEF_LOG_DIR   "../../var/lib/irods/log"

Definition at line 17 of file rsLog.hpp.

◆ DEF_LOGFILE_INT

#define DEF_LOGFILE_INT   5 /* default interval in days */

Definition at line 21 of file rsLog.hpp.

◆ DEF_LOGFILE_PATTERN

#define DEF_LOGFILE_PATTERN   "%Y.%m.%d" /* default pattern in strftime syntax */

Definition at line 27 of file rsLog.hpp.

◆ LOGFILE_CHK_CNT

#define LOGFILE_CHK_CNT
Value:
50 /* number of times through the loop before
* chkLogfileName is called */

Definition at line 26 of file rsLog.hpp.

◆ LOGFILE_CHK_INT

#define LOGFILE_CHK_INT   1800 /* Interval in sec for checking logFile */

Definition at line 25 of file rsLog.hpp.

◆ LOGFILE_INT

#define LOGFILE_INT   "logfileInt" /* interval in days for new log file */

Definition at line 22 of file rsLog.hpp.

◆ LOGFILE_PATTERN

#define LOGFILE_PATTERN   "logfilePattern" /* pattern for new name of log file */

Definition at line 28 of file rsLog.hpp.

◆ PROC_LOG_DIR_NAME

#define PROC_LOG_DIR_NAME   "proc"

Definition at line 18 of file rsLog.hpp.

◆ RODS_LOGFILE

#define RODS_LOGFILE   "rodsLog"

Definition at line 12 of file rsLog.hpp.

◆ RODS_SERVER_LOGFILE

#define RODS_SERVER_LOGFILE   "rodsServerLog"

Definition at line 13 of file rsLog.hpp.

◆ RULE_EXEC_LOGFILE

#define RULE_EXEC_LOGFILE   "reLog"

Definition at line 14 of file rsLog.hpp.

◆ XMSG_SVR_LOGFILE

#define XMSG_SVR_LOGFILE   "xmsgLog"

Definition at line 15 of file rsLog.hpp.

Function Documentation

◆ chkLogfileName()

int chkLogfileName ( const char *  logDir,
const char *  logFileName 
)

Definition at line 88 of file rsLog.cpp.

References CurLogfileName, getLogfileName(), LOGFILE_CHK_INT, LogfileLastChkTime, and NULL.

Referenced by runIrodsAgentFactory(), and serverMain().

Here is the call graph for this function:

◆ getLogDir()

char* getLogDir ( )

Definition at line 12 of file rsLog.cpp.

References DEF_LOG_DIR, and NULL.

Referenced by getLogfileName(), and initProcLog().

◆ getLogfileName()

void getLogfileName ( char **  logFile,
const char *  logDir,
const char *  logFileName 
)

Definition at line 45 of file rsLog.cpp.

References DEF_LOGFILE_PATTERN, get_log_file_rotation_time(), getLogDir(), LOGFILE_PATTERN, LogfileLastChkTime, MAX_NAME_LEN, and NULL.

Referenced by chkLogfileName(), logFileOpen(), runIrodsAgentFactory(), and serverize().

Here is the call graph for this function: