AAO DRAMA C++ Interface (Old style)
DRAMA C++, Depreciated, don't use for new code
Classes | Macros | Functions
gitlogger.h File Reference
#include "DitsTypes.h"
#include "Ers.h"
#include <stdio.h>
#include <string>
#include <DitsFix.h>

Go to the source code of this file.

Classes

class  GitLogger
 Implementation of a Class supporting Logging with a DRAMA GIT Task. More...
 
class  GitLogger___Time
 

Macros

#define GIT_LOG_ACTENT   0x04
 Log Action entry.
 
#define GIT_LOG_ACTEXIT   0x08
 Log Action exit messages.
 
#define GIT_LOG_ALL   0xFFFFFFFF
 Log everything.
 
#define GIT_LOG_ALWAYS   0x40000
 Always log the message.
 
#define GIT_LOG_ALWAYS_S   0x80000
 Always log the messages, including to the screen.
 
#define GIT_LOG_ARGS   0x1000
 Log entry and exit arguments if logging entry and exit.
 
#define GIT_LOG_COMMS   0x80
 Log DRAMA communications messages.
 
#define GIT_LOG_DEBUG   0x40
 Log Debug messages.
 
#define GIT_LOG_ERRORS   0x02
 Log Ers and action completion errors.
 
#define GIT_LOG_INST   0x10
 Log instument specific log messages.
 
#define GIT_LOG_MSG   0x20
 Log MsgOut messages.
 
#define GIT_LOG_STARTUP   0x01
 Log Task startup messages.
 
#define GIT_LOG_USER1   0x100
 User defined logging level 1.
 
#define GIT_LOG_USER2   0x200
 User defined logging level 2.
 
#define GIT_LOG_USER3   0x400
 User defined logging level 3.
 
#define GIT_LOG_USER4   0x800
 User defined logging level 4.
 
#define GIT_LOGGER_M_FLUSH_ALWAYS   2 /* If set, flush on each event */
 
#define GIT_LOGGER_M_LOG_FLUSH_OFF
 
#define GIT_LOGGER_M_NO_FSYNC   1 /* If set, don't fsync on flush */
 C interface to tuning GitLogger.
 
#define GIT_LOGGER_M_SYNC_THRD_IS_RNNNG
 
#define GIT_LOGGER_M_SYNC_THRD_RUN   8 /* If set - run the sync thread */
 
#define LOG_ACTENT   GIT_LOG_ACTENT
 Log Action entry.
 
#define LOG_ACTEXIT   GIT_LOG_ACTEXIT
 Log Action exit messages.
 
#define LOG_ALL   GIT_LOG_ALL
 Log everything.
 
#define LOG_ALWAYS   GIT_LOG_ALWAYS
 Always log the message.
 
#define LOG_ALWAYS_S   GIT_LOG_ALWAYS_S
 Always log the messages, including to the screen.
 
#define LOG_ARGS   GIT_LOG_ARGS
 Log entry and exit arguments if logging entry and exit.
 
#define LOG_COMMS   GIT_LOG_COMMS
 Log DRAMA communications messages.
 
#define LOG_DEBUG   GIT_LOG_DEBUG
 Log Debug messages.
 
#define LOG_ERRORS   GIT_LOG_ERRORS
 Log Ers and action completion errors.
 
#define LOG_INST   GIT_LOG_INST
 Log instument specific log messages.
 
#define LOG_MSG   GIT_LOG_MSG
 Log MsgOut messages.
 
#define LOG_STARTUP   GIT_LOG_STARTUP
 Log Task startup messages.
 
#define LOG_USER1   GIT_LOG_USER1
 User defined logging level 1.
 
#define LOG_USER2   GIT_LOG_USER2
 User defined logging level 2.
 
#define LOG_USER3   GIT_LOG_USER3
 User defined logging level 3.
 
#define LOG_USER4   GIT_LOG_USER4
 User defined logging level 4.
 

Functions

FILE * GitLoggerFile (StatusType *status)
 C interface to fetching the log file pointer.
 
void GitLoggerFlushAlways (int flag, StatusType *status)
 C interface to setting the GitLogger flush flag.
 
void GitLoggerInit (const char *system, StatusType *status)
 C interface to enabling a Git logger.
 
void GitLoggerTune (unsigned NewSettings, unsigned *OldSettings, StatusType *status)