00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _MAGICKCORE_LOG_H
00019 #define _MAGICKCORE_LOG_H
00020
00021 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024
00025 #include <stdarg.h>
00026 #include "magick/exception.h"
00027
00028 #if !defined(GetMagickModule)
00029 # define GetMagickModule() __FILE__,__func__,(unsigned long) __LINE__
00030 #endif
00031
00032 #define MagickLogFilename "log.xml"
00033
00034 typedef enum
00035 {
00036 UndefinedEvents,
00037 NoEvents = 0x00000,
00038 TraceEvent = 0x00001,
00039 AnnotateEvent = 0x00002,
00040 BlobEvent = 0x00004,
00041 CacheEvent = 0x00008,
00042 CoderEvent = 0x00010,
00043 ConfigureEvent = 0x00020,
00044 DeprecateEvent = 0x00040,
00045 DrawEvent = 0x00080,
00046 ExceptionEvent = 0x00100,
00047 LocaleEvent = 0x00200,
00048 ModuleEvent = 0x00400,
00049 PolicyEvent = 0x00800,
00050 ResourceEvent = 0x01000,
00051 TransformEvent = 0x02000,
00052 UserEvent = 0x04000,
00053 WandEvent = 0x08000,
00054 X11Event = 0x10000,
00055 AllEvents = 0x7fffffff
00056 } LogEventType;
00057
00058 typedef struct _LogInfo
00059 LogInfo;
00060
00061 extern MagickExport char
00062 **GetLogList(const char *,unsigned long *,ExceptionInfo *);
00063
00064 extern MagickExport const char
00065 *GetLogName(void),
00066 *SetLogName(const char *);
00067
00068 extern MagickExport const LogInfo
00069 **GetLogInfoList(const char *,unsigned long *,ExceptionInfo *);
00070
00071 extern MagickExport LogEventType
00072 SetLogEventMask(const char *);
00073
00074 extern MagickExport MagickBooleanType
00075 IsEventLogging(void),
00076 ListLogInfo(FILE *,ExceptionInfo *),
00077 LogMagickEvent(const LogEventType,const char *,const char *,
00078 const unsigned long,const char *,...)
00079 magick_attribute((format (printf,5,6))),
00080 LogMagickEventList(const LogEventType,const char *,const char *,
00081 const unsigned long,const char *,va_list)
00082 magick_attribute((format (printf,5,0)));
00083
00084 extern MagickExport void
00085 CloseMagickLog(void),
00086 DestroyLogList(void),
00087 SetLogFormat(const char *);
00088
00089 #if defined(__cplusplus) || defined(c_plusplus)
00090 }
00091 #endif
00092
00093 #endif