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)  

rodsLog.h
Go to the documentation of this file.
1 
3 /* definitions for rodsLog routines */
4 #ifndef RODS_LOG_H__
5 #define RODS_LOG_H__
6 
7 #include "rodsError.h"
8 
9 #define LOG_SQL 11
10 /* This is for logging SQL statements. These are only logged when
11  specifically requested and so are a high priority at this level. */
12 
13 
14 #define LOG_DEBUG1 10
15 #define LOG_DEBUG2 9
16 #define LOG_DEBUG3 8
17 /* Legacy DEBUG levels - leaving here for backwards compatibility */
18 
19 #define LOG_DEBUG10 10
20 #define LOG_DEBUG9 9
21 #define LOG_DEBUG8 8
22 #define LOG_DEBUG7 7
23 #define LOG_DEBUG 7
24 #define LOG_DEBUG6 6
25 /*
26  The DEBUG messages are for the software engineer to analyze and
27  debug operations. These are typically added during development and
28  debug of the code, but can be left in place for possible future
29  use. In many cases, one would be able start seeing these messages
30  via a command-line argument to adjust the rodsLog verbosity level.
31 */
32 
33 #define LOG_NOTICE 5
34 #define LOG_STATUS 5
35 /* These are informational only, part of the normal operation but will
36  often be of interest. */
37 
38 #define LOG_WARNING 4
39 /* This means that the system is probably not performing as expected.
40  This is not harmful, but should probably be looked into by the
41  administrator. */
42 
43 #define LOG_ERROR 3
44 /* This means that the function cannot complete what it was asked to
45  do, probably because of bad input from the user (an invalid host
46  name, for example). */
47 
48 #define LOG_SYS_WARNING 2
49 /* This means a system-level problem occurred that is not fatal to the
50  whole system (it can continue to run), but does indicate an internal
51  inconsistency of some kind. An example is a file with a physical
52  size that is different than that recorded in the database.
53 */
54 
55 #define LOG_SYS_FATAL 1
56 /* This is used for errors that mean that the system (not just one
57  server, client, or user) cannot continue. An example is when the
58  server is unable to talk to the database. */
59 
60 #ifdef __cplusplus
61 extern "C" {
62 #endif
63 void rodsLog( int level, const char *formatStr, ... );
64 void rodsLogAndErrorMsg( int level, rError_t *myError, int status,
65  const char *formatStr, ... );
66 void rodsLogLevel( int level );
67 void rodsLogSqlReq( int onOrOff );
68 void rodsLogSql( const char *sql );
69 void rodsLogSqlResult( char *stat );
70 const char *rodsErrorName( int errorValue, char **subName );
71 void rodsLogErrorOld( int level, int errCode, char *textStr );
72 void rodsLogError( int level, int errCode, char *formatStr, ... );
73 int getRodsLogLevel();
74 void generateLogTimestamp( char *ts, int tsLen );
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif // RODS_LOG_H__
rodsLog
void rodsLog(int level, const char *formatStr,...)
Definition: rodsLog.cpp:86
rodsLogSqlReq
void rodsLogSqlReq(int onOrOff)
Definition: rodsLog.cpp:352
rodsLogSqlResult
void rodsLogSqlResult(char *stat)
Definition: rodsLog.cpp:363
rodsErrorName
const char * rodsErrorName(int errorValue, char **subName)
Definition: rodsLog.cpp:373
rodsError.h
rError_t
Definition: rodsError.h:24
rodsLogAndErrorMsg
void rodsLogAndErrorMsg(int level, rError_t *myError, int status, const char *formatStr,...)
Definition: rodsLog.cpp:231
getRodsLogLevel
int getRodsLogLevel()
Definition: rodsLog.cpp:344
rodsLogErrorOld
void rodsLogErrorOld(int level, int errCode, char *textStr)
Definition: rodsLog.cpp:397
irods.pypyodbc.status
status
Definition: pypyodbc.py:467
rodsLogLevel
void rodsLogLevel(int level)
Definition: rodsLog.cpp:339
rodsLogSql
void rodsLogSql(const char *sql)
Definition: rodsLog.cpp:357
rodsLogError
void rodsLogError(int level, int errCode, char *formatStr,...)
Definition: rodsLog.cpp:422
generateLogTimestamp
void generateLogTimestamp(char *ts, int tsLen)
Definition: rodsLog.cpp:514