dnxLogging.h File Reference

Go to the source code of this file.

Functions

void dnxLog (char *fmt,...)
 Log a parameterized message to the dnx system log file.
void dnxDebug (int level, char *fmt,...)
 Log a parameterized message to the dnx DEBUG log.
int dnxAudit (char *fmt,...)
 Log a parameterized message to the global audit log file.
void dnxLogInit (char *logFile, char *debugFile, char *auditFile, int *debugLevel)
 Initialize the logging sub-system with global references.


Function Documentation

int dnxAudit ( char *  fmt,
  ... 
)

Log a parameterized message to the global audit log file.

Returns quickly if auditing is disabled because a null or empty log file was specified on startup.

Parameters:
[in] fmt - a format specifier string similar to that of printf.
Returns:
Zero on success, or a non-zero error value.

Definition at line 328 of file dnxLogging.c.

void dnxDebug ( int  level,
char *  fmt,
  ... 
)

Log a parameterized message to the dnx DEBUG log.

This routine logs a debug message if the current global (configured) debug level is greater than or equal the value of level.

Parameters:
[in] level - the debug level at which to log the message.
[in] fmt - a format specifier string similar to that of printf.

Definition at line 296 of file dnxLogging.c.

void dnxLog ( char *  fmt,
  ... 
)

Log a parameterized message to the dnx system log file.

Parameters:
[in] fmt - a format specifier string similar to that of printf.

Definition at line 264 of file dnxLogging.c.

void dnxLogInit ( char *  logFile,
char *  debugFile,
char *  auditFile,
int *  debugLevel 
)

Initialize the logging sub-system with global references.

System and debug logging defaults to STDOUT. Both "STDOUT" and "STDERR" may be specified as log file strings for the log, debug and audit file paths. The audit log is optional, and is disabled if auditFile is null or empty.

The address of the debug flag is passed so it can change the behavior of the logging system dynamically.

Parameters:
[in] logFile - the global log file path.
[in] debugFile - the global debug file path.
[in] auditFile - the global audit file path (optional).
[in] debugLevel - the address of the global debug level indicator.

Definition at line 362 of file dnxLogging.c.


Generated on Tue Apr 13 15:15:29 2010 for DNX by  doxygen 1.5.6