6 enum EFacility { ETask, EJob, EEvent, EBroker, ETransport };
7 enum EStage { EBegin, EEnd, EPRogress };
26 static TXUcmLog *openlog(
const char* ident,
int logopt, EFacility facility);
27 static TXUcmLog *openlog(
const char* ident,
int logopt);
28 static TXUcmLog *openlog(
const char* ident=
"ucmlog");
32 void ucmlog(
unsigned int pripority,
const char*message);
35 void ucmlog(
const char*message=0);
39 void ucmlogevent(EStage stage=EBegin,
const char*message=0);
42 void ucmlogmessage(
const char*message=0);
48 void openTask(
unsigned int brokerTaskID);
51 void openJob(
unsigned int brokerJobID);
59 void setlogmask(
unsigned int logmask);
61 void setAttribute(
const char *key,
const char * value);
64 void setTaskId(
unsigned int brokerTaskID);
67 void setJobId(
unsigned int brokerJobID);
70 void setEventId(
unsigned int taskId);
73 const char *getAttribute(
const char *key)
const;
76 const char *getAttribute(
int attributeIndex)
const;
79 int getNumberofAttributes()
const;
82 void resetAttribute(
const char *key);
85 void resetAttributes();
87 unsigned long getTaskId()
const;
88 unsigned long getJobId()
const;
89 unsigned long getEventId()
const;
91 bool isTaskOpen()
const;
92 bool isJobOpen()
const;