65 extern void MAMACALLTYPE
78 extern void MAMACALLTYPE
89 extern void MAMACALLTYPE
137 extern void MAMACALLTYPE
MAMAExpDLL void mama_logVa(MamaLogLevel level, const char *format, va_list args)
MAMAExpDLL int mama_logDecrementVerbosity(MamaLogLevel *level)
Decrease by one log level the verbosity of a MamaLogLevel variable.
MAMAExpDLL int mama_tryStringToLogPolicy(const char *s, mamaLogFilePolicy *policy)
Try to convert string to log policy.
const char va_list ap
Definition: log.h:59
MAMAExpDLL void mama_logStdout(MamaLogLevel level, const char *format,...)
typedef void(MAMACALLTYPE *mamaLogCb)(MamaLogLevel level
The prototype of the MAMA logging functions.
MAMAExpDLL mama_status mama_setAppendToLogFile(int append)
Set append to existing log file.
MAMAExpDLL mama_status mama_logToFile(const char *file, MamaLogLevel level)
Behaves as mama_enableLogging() but accepts a string representing the file location.
MAMAExpDLL void MAMACALLTYPE mama_forceLogDefault(MamaLogLevel level, const char *format, va_list ap)
The default function used within the API for the mama_forceLog function pointer.
MAMAExpDLL int mama_logIncrementVerbosity(MamaLogLevel *level)
Increase by one log level the verbosity of a MamaLogLevel variable.
mamaLogFilePolicy
The policy to control log file size.
Definition: log.h:49
MAMAExpDLL MamaLogLevel gMamaLogLevel
The current log level within the API.
MAMAExpDLL mama_status mama_disableLogging(void)
Disable logging.
MAMAExpDLL int mama_loggingToFile(void)
Return status of loggingToFile.
MAMAExpDLL const char * mama_logPolicyToString(mamaLogFilePolicy level)
Return string version of log policy.
MAMAExpDLL mama_status mama_logForceRollLogFiles(void)
Force rolling the log file.
MAMAExpDLL void mama_forceLog(MamaLogLevel level, const char *format,...)
MAMAExpDLL void MAMACALLTYPE mama_log2(MamaLogLevel level, const char *message)
const char * format
Definition: log.h:59
MAMAExpDLL mama_status mama_setLogLevel(MamaLogLevel level)
Sets the log level for Mama.
MamaLogLevel
The level of detail when logging is enabled within the API.
Definition: log.h:36
MAMAExpDLL const char * mama_logLevelToString(MamaLogLevel level)
Return string version of log level.
MAMAExpDLL FILE * gMamaLogFile
The file to which all logging will be written by default.
size_t size
Definition: queue.h:46
MAMAExpDLL MamaLogLevel mama_getLogLevel(void)
Returns the current log level for Mama.
MAMAExpDLL void mama_log(MamaLogLevel level, const char *format,...)
Used for the majority of logging within the API.
MAMAExpDLL mama_status mama_enableLogging(FILE *file, MamaLogLevel level)
Enable logging.
MAMAExpDLL mama_status mama_setLogFilePolicy(mamaLogFilePolicy policy)
Set the policy regarding how to handle files when Max file size is reached.
mama_status
Definition: status.h:37
MAMAExpDLL void MAMACALLTYPE mama_logDefault(MamaLogLevel level, const char *format, va_list ap)
The default logging within the API unless otherwise specified.
MAMAExpDLL int mama_tryStringToLogLevel(const char *s, MamaLogLevel *level)
Try to convert string to log level Return non-zero for success, zero for failure The string compariso...
MAMAExpDLL mama_status mama_setNumLogFiles(int numFiles)
Set the number of rolled logfiles to keep before overwriting.
MAMAExpDLL void mama_forceLogVa(const char *format, va_list args)
Used for the force logging using variable argument parameters.
void mama_logDestroy(void)
Destroy memory held by the logging.
MAMAExpDLL mama_status mama_setLogCallback(mamaLogCb callback)
Set the callback to be used for mama_log calls.
void(* logSizeCbType)(void)
Definition: log.h:61
MAMAExpDLL mama_status mama_setLogSizeCb(logSizeCbType logCallbacks)
Set a callback for when the max log size is reached.
MAMAExpDLL void MAMACALLTYPE mama_logDefault2(MamaLogLevel level, const char *message)
This second logging function takes only a message and not a format string with a variable argument li...
const char * message
Definition: log.h:60
MAMAExpDLL mama_status mama_setForceLogCallback(mamaLogCb callback)
Set the callback to be used for mama logging.
MAMAExpDLL mama_status mama_setLogSize(unsigned long size)
Set the maxmum size of the log file (bytes).
MAMAExpDLL mama_status mama_setLogCallback2(mamaLogCb2 callback)
Set the callback to be used for mama_log calls.