This file will hold the prototypes for defining procedure which set message log levels, messahe log formats, message log destinations, and for generating the messages themselves.
Definition in file psLogMsg.h.
#include <stdarg.h>
#include "psType.h"
Include dependency graph for psLogMsg.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Enumerations | |
| enum | { PS_LOG_ABORT = 0, PS_LOG_ERROR, PS_LOG_WARN, PS_LOG_INFO, PS_LOG_DETAIL, PS_LOG_MINUTIA } |
| < Status codes for log messages More... | |
| enum | { PS_LOG_TO_NONE = 0, PS_LOG_TO_STDERR = 1, PS_LOG_TO_STDOUT = 2 } |
Functions | |
| bool | psLogSetDestination (int fd) |
| This procedure sets the destination for future log messages. | |
| int | psLogGetDestination () |
| This procedure returns the current log destination file descriptor. | |
| int | psLogSetLevel (int level) |
| This procedure sets the message level for future log messages. | |
| int | psLogGetLevel () |
| This procedures returns the current log message level. | |
| bool | psLogSetFormat (const char *format) |
| This procedure sets the log format for future log messages. | |
| int | psMessageDestination (const char *dest) |
| This procedures uses a string to set the destination for which to send the corresponding log messages. | |
| void | psLogMsg (const char *name, int level, const char *format,...) |
| This procedure logs a message to the destination set by a prior call to psLogSetDestination(), if myLevel is less than the level specified by a prior call to psLogSetLevel(). | |
| void | psLogMsgV (const char *name, int level, const char *format, va_list ap) |
| This procedure is functionally equivalent to psLogMsg(), except that it takes a va_list as the message parameter, not a printf-style string. | |
1.5.1