log.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.
00006   obtain a copy of the License at
00007   
00008     http://www.imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore log methods.
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

Generated on Thu Jul 2 12:03:20 2009 for MagickCore by  doxygen 1.5.8