![]() |
![]() |
![]() |
|
[
About the Wizard's Toolkit ] [ Command-line Tools ] [ Application Program Interface ] [ Install from Source Unix Windows Binary Releases Unix Windows ] [ Download ] [ Search ] [ Sponsors: ] |
CloseWizardLog() closes the Wizard log. The format of the CloseWizardLog method is: CloseWizardLog(void) GetLogInfoList() returns any logs that match the specified pattern. The format of the GetLogInfoList function is:
const LogInfo **GetLogInfoList(const char *pattern,
unsigned long *number_preferences,ExceptionInfo *exception)
A description of each parameter follows: patternSpecifies a pointer to a text string containing a pattern. number_preferencesThis integer returns the number of logs in the list. exceptionReturn any errors or warnings in this structure. GetLogList() returns any logs that match the specified pattern. The format of the GetLogList function is:
char **GetLogList(const char *pattern,unsigned long *number_preferences,
ExceptionInfo *exception)
A description of each parameter follows: patternSpecifies a pointer to a text string containing a pattern. number_preferencesThis integer returns the number of logs in the list. exceptionReturn any errors or warnings in this structure. GetLogName() returns the current log name. The format of the GetLogName method is: const char *GetLogName(void) IsEventLogging() returns WizardTrue if debug of events is enabled otherwise WizardFalse. The format of the IsEventLogging method is: WizardBooleanType IsEventLogging(void) ListLogInfo() lists the log info to a file. The format of the ListLogInfo method is: WizardBooleanType ListLogInfo(FILE *file,ExceptionInfo *exception) A description of each parameter follows. fileAn pointer to a FILE. exceptionReturn any errors or warnings in this structure. LogWizardEvent() logs an event as determined by the log configuration file. If an error occurs, WizardFalse is returned otherwise WizardTrue. The format of the LogWizardEvent method is:
WizardBooleanType LogWizardEvent(const LogEventType type,
const char *module,const char *function,const unsigned long line,
const char *format,...)
A description of each parameter follows: typeThe event type. filenameThe source module filename. functionThe function name. lineThe line number of the source module. formatThe output format. LoadLogLists() loads one or more log configuration file which provides a mapping between log attributes and log name. The format of the LoadLogLists method is:
WizardBooleanType LoadLogLists(const char *filename,
ExceptionInfo *exception)
A description of each parameter follows: filenameThe log configuration filename. exceptionReturn any errors or warnings in this structure. SetLogEventMask() accepts a list that determines which events to log. All other events are ignored. By default, no debug is enabled. This method returns the previous log event mask. The format of the SetLogEventMask method is: LogEventType SetLogEventMask(const char *events) A description of each parameter follows: eventslog these events. SetLogFormat() sets the format for the "human readable" log record. The format of the LogWizardFormat method is: SetLogFormat(const char *format) A description of each parameter follows: formatThe log record format. SetLogName() sets the log name and returns it. The format of the SetLogName method is: const char *SetLogName(const char *name) A description of each parameter follows: log_nameSetLogName() returns the current client name. nameSpecifies the new client name. |