- 31 Jan, 2009 1 commit
-
-
Steven Murray authored
function in order to allow developers to call the function without the need to specify the size of the params array: template<int n> void dlf_writep (Cuuid_t uuid, int severity, int message_no, castor::dlf::Param (¶ms)[n], struct Cns_fileid *ns_invariant = 0) throw() { dlf_writep(uuid, severity, message_no, n, params, 0); } The template causes the size of the array to be determied at compile time. A pointer to castor::dlf::Param will of course not work. The original castor::dlf::dlf_writep function can be used as usual in this case. The following code snippet shows an example of using the new template: castor::dlf::Param params[] = { castor::dlf::Param("volReqId", vdqmJobRequest.tapeRequestId), castor::dlf::Param("vid" , request.vid ), castor::dlf::Param("vsn" , request.vsn ), castor::dlf::Param("label" , request.label ), castor::dlf::Param("devtype" , request.devtype ), castor::dlf::Param("density" , request.density )}; castor::dlf::dlf_writep(cuuid, DLF_LVL_SYSTEM, AGGREGATOR_GAVE_VOLUME_INFO, params);
-
- 14 Mar, 2008 1 commit
-
-
Sebastien Ponce authored
-
- 10 Mar, 2008 1 commit
-
-
Dennis Waldron authored
-
- 05 Mar, 2008 1 commit
-
-
Rosa Maria Garcia Rioja authored
-
- 17 Aug, 2007 1 commit
-
-
Sebastien Ponce authored
Use ::dlf_isinitialized instead of our own version so that it works also when DLF is initialized from C
-
- 16 Aug, 2007 1 commit
-
-
Sebastien Ponce authored
Improved logging into DLF. You can now declare new messages even before DLF was initialized. Very useful for libraries loaded before the main is called \!
-
- 25 Sep, 2006 1 commit
-
-
Sebastien Ponce authored
-
- 13 Jun, 2006 1 commit
-
-
Dennis Waldron authored
-
- 05 Apr, 2005 1 commit
-
-
Sebastien Ponce authored
C++ interface to DLF. This is supposed to replace the current logging facility without loosing the possibility to give objects to the interface.
-