2 Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 MagickCore log methods.
18 #ifndef _MAGICKCORE_LOG_H
19 #define _MAGICKCORE_LOG_H
21 #if defined(__cplusplus) || defined(c_plusplus)
26 #include "MagickCore/exception.h"
28 #if !defined(GetMagickModule)
29 # define GetMagickModule() __FILE__,__func__,(unsigned long) __LINE__
32 #define MagickLogFilename "log.xml"
39 AnnotateEvent = 0x00002,
43 ConfigureEvent = 0x00020,
44 DeprecateEvent = 0x00040,
46 ExceptionEvent = 0x00100,
48 LocaleEvent = 0x00400,
49 ModuleEvent = 0x00800,
50 PolicyEvent = 0x01000,
51 ResourceEvent = 0x02000,
52 TransformEvent = 0x04000,
56 AllEvents = 0x7fffffff
59 typedef struct _LogInfo
62 extern MagickExport char
63 **GetLogList(const char *,size_t *,ExceptionInfo *);
65 extern MagickExport const char
67 *SetLogName(const char *);
69 extern MagickExport const LogInfo
70 **GetLogInfoList(const char *,size_t *,ExceptionInfo *);
72 extern MagickExport LogEventType
73 SetLogEventMask(const char *);
75 extern MagickExport MagickBooleanType
77 ListLogInfo(FILE *,ExceptionInfo *),
78 LogMagickEvent(const LogEventType,const char *,const char *,const size_t,
80 magick_attribute((format (printf,5,6))),
81 LogMagickEventList(const LogEventType,const char *,const char *,const size_t,
82 const char *,va_list) magick_attribute((format (printf,5,0)));
84 extern MagickExport void
86 SetLogFormat(const char *);
88 #if defined(__cplusplus) || defined(c_plusplus)