18#ifndef MAGICKCORE_LOG_H
19#define MAGICKCORE_LOG_H
21#include "MagickCore/exception.h"
23#if defined(__cplusplus) || defined(c_plusplus)
27#if !defined(GetMagickModule)
28# define GetMagickModule() __FILE__,__func__,(unsigned long) __LINE__
31#define MagickLogFilename "log.xml"
35 UndefinedEvents = 0x000000,
37 AccelerateEvent = 0x00001,
38 AnnotateEvent = 0x00002,
42 ConfigureEvent = 0x00020,
43 DeprecateEvent = 0x00040,
45 ExceptionEvent = 0x00100,
47 LocaleEvent = 0x00400,
48 ModuleEvent = 0x00800,
50 PolicyEvent = 0x02000,
51 ResourceEvent = 0x04000,
53 TransformEvent = 0x10000,
57 CommandEvent = 0x100000,
58 AllEvents = 0x7fffffff
65 (*MagickLogMethod)(
const LogEventType,
const char *);
67extern MagickExport
char
70extern MagickExport
const char
71 *GetLogName(
void) magick_attribute((__pure__)),
72 *SetLogName(
const char *);
74extern MagickExport LogEventType
75 GetLogEventMask(
void) magick_attribute((__pure__));
77extern MagickExport
const LogInfo
80extern MagickExport LogEventType
81 SetLogEventMask(
const char *);
83extern MagickExport MagickBooleanType
84 IsEventLogging(
void) magick_attribute((__pure__)),
86 LogMagickEvent(
const LogEventType,
const char *,
const char *,
const size_t,
87 const char *,...) magick_attribute((__format__ (__printf__,5,6))),
88 LogMagickEventList(const LogEventType,const
char *,const
char *,const
size_t,
89 const
char *,va_list) magick_attribute((__format__ (__printf__,5,0)));
91extern MagickExport
void
93 SetLogFormat(const
char *),
94 SetLogMethod(MagickLogMethod);
96#if defined(__cplusplus) || defined(c_plusplus)