MagickCore 7.0.10
log.h
Go to the documentation of this file.
1/*
2 Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
7
8 https://imagemagick.org/script/license.php
9
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.
15
16 Wizard's Toolkit log methods.
17*/
18#ifndef _WIZARDSTOOLKIT_LOG_H
19#define _WIZARDSTOOLKIT_LOG_H
20
21#include <stdarg.h>
22#include "wizard/exception.h"
23#include "wizard/timer.h"
24
25#if defined(__cplusplus) || defined(c_plusplus)
26extern "C" {
27#endif
28
29#if !defined(GetWizardModule)
30# define GetWizardModule() __FILE__,__func__,(unsigned long) __LINE__
31#endif
32
33#define WizardLogFilename "log.xml"
34
35typedef enum
36{
38 NoEvents = 0x0000,
39 TraceEvent = 0x0001,
40 AnnotateEvent = 0x0002,
41 BlobEvent = 0x0004,
42 CacheEvent = 0x0008,
43 CoderEvent = 0x0010,
47 LocaleEvent = 0x0100,
48 ModuleEvent = 0x0200,
49 ResourceEvent = 0x0400,
51 WarningEvent = 0x1000,
52 UserEvent = 0x2000,
53 AllEvents = 0x7fffffff
55
56typedef struct _LogInfo
58
59extern WizardExport char
60 **GetLogList(const char *,size_t *,ExceptionInfo *);
61
62extern WizardExport const LogInfo
63 *GetLogInfo(const char *,ExceptionInfo *),
64 **GetLogInfoList(const char *,size_t *,ExceptionInfo *);
65
67 SetLogEventMask(const char *);
68
73 LogWizardEvent(const LogEventType,const char *,const char *,
74 const size_t,const char *,...)
75 wizard_attribute((__format__ (__printf__,5,6))),
76 LogWizardEventList(const LogEventType,const char *,const char *,
77 const size_t,const char *,va_list)
78 wizard_attribute((__format__ (__printf__,5,0)));
79
80extern WizardExport void
83 SetLogFormat(const char *),
84 SetLogPreamble(const char *);
85
86#if defined(__cplusplus) || defined(c_plusplus)
87}
88#endif
89
90#endif
WizardExport WizardBooleanType LogComponentGenesis(void)
WizardExport WizardBooleanType WizardExport void SetLogFormat(const char *)
WizardExport const LogInfo ** GetLogInfoList(const char *, size_t *, ExceptionInfo *)
Definition log.c:470
WizardExport WizardBooleanType LogWizardEvent(const LogEventType, const char *, const char *, const size_t, const char *,...) wizard_attribute((__format__(__printf__
WizardExport WizardBooleanType ListLogInfo(FILE *, ExceptionInfo *)
LogEventType
Definition log.h:36
@ NoEvents
Definition log.h:38
@ AnnotateEvent
Definition log.h:40
@ UserEvent
Definition log.h:52
@ LocaleEvent
Definition log.h:47
@ WarningEvent
Definition log.h:51
@ DeprecateEvent
Definition log.h:45
@ ModuleEvent
Definition log.h:48
@ AllEvents
Definition log.h:53
@ TraceEvent
Definition log.h:39
@ CacheEvent
Definition log.h:42
@ UndefinedEvents
Definition log.h:37
@ CoderEvent
Definition log.h:43
@ ExceptionEvent
Definition log.h:46
@ ConfigureEvent
Definition log.h:44
@ BlobEvent
Definition log.h:41
@ TransformEvent
Definition log.h:50
@ ResourceEvent
Definition log.h:49
WizardExport char ** GetLogList(const char *, size_t *, ExceptionInfo *)
Definition log.c:563
WizardExport WizardBooleanType IsEventLogging(void)
WizardExport const LogInfo * GetLogInfo(const char *, ExceptionInfo *)
WizardExport LogEventType SetLogEventMask(const char *)
Definition log.c:1731
WizardExport WizardBooleanType WizardExport void SetLogPreamble(const char *)
WizardExport WizardBooleanType WizardExport void CloseWizardLog(void)
WizardExport WizardBooleanType LogWizardEventList(const LogEventType, const char *, const char *, const size_t, const char *, va_list) wizard_attribute((__format__(__printf__
WizardExport WizardBooleanType WizardExport void LogComponentTerminus(void)
#define wizard_attribute(x)
#define WizardExport
WizardBooleanType
Definition wizard-type.h:26