log.c File Reference

#include "magick/studio.h"
#include "magick/blob.h"
#include "magick/client.h"
#include "magick/configure.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/hashmap.h"
#include "magick/log.h"
#include "magick/memory_.h"
#include "magick/option.h"
#include "magick/semaphore.h"
#include "magick/timer.h"
#include "magick/string_.h"
#include "magick/token.h"
#include "magick/thread_.h"
#include "magick/thread-private.h"
#include "magick/utility.h"
#include "magick/version.h"
#include "magick/xml-tree.h"
Include dependency graph for log.c:

Go to the source code of this file.

Data Structures

struct  _EventInfo
struct  _HandlerInfo
struct  _LogInfo
struct  _LogMapInfo

Defines

#define LogFilename   "log.xml"
#define MegabytesToBytes(value)   ((MagickSizeType) (value)*1024*1024)

Typedefs

typedef struct _EventInfo EventInfo
typedef struct _HandlerInfo HandlerInfo
typedef struct _LogMapInfo LogMapInfo

Enumerations

enum  LogHandlerType {
  UndefinedHandler = 0x0000, NoHandler = 0x0000, ConsoleHandler = 0x0001, StdoutHandler = 0x0002,
  StderrHandler = 0x0004, FileHandler = 0x0008, DebugHandler = 0x0010, EventHandler = 0x0020
}

Functions

static LogHandlerType ParseLogHandlers (const char *)
static LogInfoGetLogInfo (const char *, ExceptionInfo *)
static MagickBooleanType InitializeLogList (ExceptionInfo *)
static MagickBooleanType LoadLogLists (const char *, ExceptionInfo *)
MagickExport void CloseMagickLog (void)
static int LogInfoCompare (const void *x, const void *y)
MagickExport const LogInfo ** GetLogInfoList (const char *pattern, unsigned long *number_preferences, ExceptionInfo *exception)
static int LogCompare (const void *x, const void *y)
MagickExport char ** GetLogList (const char *pattern, unsigned long *number_preferences, ExceptionInfo *exception)
MagickExport const char * GetLogName (void)
MagickExport MagickBooleanType IsEventLogging (void)
MagickExport MagickBooleanType ListLogInfo (FILE *file, ExceptionInfo *exception)
MagickExport MagickBooleanType LogComponentGenesis (void)
static void * DestroyLogElement (void *log_info)
MagickExport void LogComponentTerminus (void)
static char * TranslateEvent (const LogEventType magick_unused(type), const char *module, const char *function, const unsigned long line, const char *domain, const char *event)
static char * TranslateFilename (const LogInfo *log_info)
MagickBooleanType LogMagickEventList (const LogEventType type, const char *module, const char *function, const unsigned long line, const char *format, va_list operands)
MagickBooleanType LogMagickEvent (const LogEventType type, const char *module, const char *function, const unsigned long line, const char *format,...)
static MagickBooleanType LoadLogList (const char *xml, const char *filename, const unsigned long depth, ExceptionInfo *exception)
MagickExport LogEventType SetLogEventMask (const char *events)
MagickExport void SetLogFormat (const char *format)
MagickExport const char * SetLogName (const char *name)

Variables

static const HandlerInfo LogHandlers []
static const LogMapInfo LogMap []
static char log_name [MaxTextExtent] = "Magick"
static LinkedListInfolog_list = (LinkedListInfo *) NULL
static SemaphoreInfolog_semaphore = (SemaphoreInfo *) NULL
static volatile MagickBooleanType instantiate_log = MagickFalse

Define Documentation

#define LogFilename   "log.xml"

Definition at line 65 of file log.c.

Referenced by InitializeLogList().

#define MegabytesToBytes ( value   )     ((MagickSizeType) (value)*1024*1024)

Referenced by ListLogInfo().


Typedef Documentation

typedef struct _EventInfo EventInfo
typedef struct _HandlerInfo HandlerInfo
typedef struct _LogMapInfo LogMapInfo

Enumeration Type Documentation

Enumerator:
UndefinedHandler 
NoHandler 
ConsoleHandler 
StdoutHandler 
StderrHandler 
FileHandler 
DebugHandler 
EventHandler 

Definition at line 70 of file log.c.


Function Documentation

MagickExport void CloseMagickLog ( void   ) 
static void* DestroyLogElement ( void *  log_info  )  [static]
static LogInfo * GetLogInfo ( const char *  name,
ExceptionInfo exception 
) [static]
MagickExport const LogInfo** GetLogInfoList ( const char *  pattern,
unsigned long *  number_preferences,
ExceptionInfo exception 
)
MagickExport char** GetLogList ( const char *  pattern,
unsigned long *  number_preferences,
ExceptionInfo exception 
)
MagickExport const char* GetLogName ( void   ) 

Definition at line 502 of file log.c.

References log_name.

Referenced by TranslateEvent(), and TranslateFilename().

static MagickBooleanType InitializeLogList ( ExceptionInfo exception  )  [static]
MagickExport MagickBooleanType IsEventLogging ( void   ) 
MagickExport MagickBooleanType ListLogInfo ( FILE *  file,
ExceptionInfo exception 
)
static MagickBooleanType LoadLogList ( const char *  xml,
const char *  filename,
const unsigned long  depth,
ExceptionInfo exception 
) [static]
static MagickBooleanType LoadLogLists ( const char *  filename,
ExceptionInfo exception 
)
static int LogCompare ( const void *  x,
const void *  y 
) [static]

Definition at line 423 of file log.c.

References LocaleCompare().

Referenced by GetLogList().

MagickExport MagickBooleanType LogComponentGenesis ( void   ) 

Definition at line 685 of file log.c.

References AcquireSemaphoreInfo(), log_semaphore, and MagickTrue.

Referenced by MagickCoreGenesis().

MagickExport void LogComponentTerminus ( void   ) 
static int LogInfoCompare ( const void *  x,
const void *  y 
) [static]

Definition at line 328 of file log.c.

References LocaleCompare().

Referenced by GetLogInfoList().

MagickBooleanType LogMagickEvent ( const LogEventType  type,
const char *  module,
const char *  function,
const unsigned long  line,
const char *  format,
  ... 
)

Definition at line 1228 of file log.c.

References LogMagickEventList().

Referenced by AcquireCacheView(), AcquireImage(), AcquireImageColormap(), AcquireMagickResource(), AcquireMemory(), AcquireNextImage(), AcquireResampleFilter(), AcquireResizeFilter(), AcquireUniqueFileResource(), AdaptiveBlurImageChannel(), AdaptiveResizeImage(), AdaptiveSharpenImageChannel(), AdaptiveThresholdImage(), AddNoiseImageChannel(), AddPathToXMLTree(), AffineTransformImage(), AllocateString(), AnimateImages(), AnnotateImage(), AppendImageFormat(), AppendImages(), AppendImageToList(), AppendValueToLinkedList(), Ascii85Flush(), AttachBlob(), AverageImages(), Base64Decode(), Base64Encode(), BilevelImageChannel(), BlackThresholdImageChannel(), BlobToFile(), BlobToImage(), BlueShiftImage(), BlurImageChannel(), BorderImage(), CatchImageException(), ChannelThresholdImage(), CharcoalImage(), ChopImage(), ClampImageChannel(), ClassifyImageColors(), ClearLinkedList(), ClipImagePath(), ClipPixelCacheNexus(), CloneCacheView(), CloneDiskToDiskPixelCache(), CloneDiskToMemoryPixelCache(), CloneImage(), CloneImageArtifacts(), CloneImageOptions(), CloneImageProfiles(), CloneImageProperties(), CloneImages(), CloneMemory(), CloneMemoryToDiskPixelCache(), CloneMemoryToMemoryPixelCache(), ClonePixelCache(), ClonePixelCacheMethods(), CloneSplayTree(), CloneString(), CloneStringInfo(), CloseBlob(), ClutImageChannel(), CoalesceImages(), ColorDecisionListImage(), ColorFloodfillImage(), ColorizeImage(), CombineImages(), CompareImageChannels(), CompareImageLayers(), CompareStringInfo(), CompositeImageChannel(), CompositeLayers(), CompressImageColormap(), ConcatenateStringInfo(), ConsolidateCMYKImages(), ConstituteImage(), ContrastImage(), ContrastStretchImageChannel(), ConvolveImageChannel(), CropImage(), CycleColormapImage(), DecipherImage(), DeleteImageArtifact(), DeleteImageList(), DeleteImageOption(), DeleteImageProfile(), DeleteImageProperty(), DeleteImageRegistry(), DeleteImages(), DeleteNodeByValueFromSplayTree(), DeleteNodeFromSplayTree(), DeskewImage(), DespeckleImage(), DestroyBlob(), DestroyCacheView(), DestroyConfigureOptions(), DestroyDrawInfo(), DestroyHashmap(), DestroyImage(), DestroyImageArtifacts(), DestroyImageAttributes(), DestroyImageInfo(), DestroyImageList(), DestroyImageOptions(), DestroyImagePixelCache(), DestroyImagePixels(), DestroyImageProperties(), DestroyImages(), DestroyLinkedList(), DestroyLocaleOptions(), DestroyMontageInfo(), DestroyPixelCache(), DestroyPixelStream(), DestroyQuantizeInfo(), DestroyRandomInfo(), DestroyResampleFilter(), DestroySignatureInfo(), DestroyStreamInfo(), DestroyStringInfo(), DestroyTokenInfo(), DestroyXMLTree(), DetachBlob(), DisassociateImageStream(), DispatchImage(), DisplayImages(), DisposeImages(), DistortImage(), DrawAffineImage(), DrawClipPath(), DrawDashPolygon(), DrawGradientImage(), DrawImage(), DrawPatternPath(), DrawPolygonPrimitive(), DrawPrimitive(), DrawStrokePolygon(), DuplicateBlob(), EdgeImage(), EmbossImage(), EncipherImage(), EnhanceImage(), EOFBlob(), EqualizeImageChannel(), EscapeString(), EvaluateImageChannel(), ExcerptImage(), ExpandFilenames(), ExportImagePixels(), ExportQuantumPixels(), ExtendCache(), ExtentImage(), FileToBlob(), FileToImage(), FileToString(), FileToStringInfo(), FinalizeSignature(), FlipImage(), FloodfillPaintImage(), FlopImage(), FormatStringList(), FrameImage(), FunctionImageChannel(), FuzzyColorCompare(), FuzzyOpacityCompare(), FxImageChannel(), GammaImage(), GammaImageChannel(), GaussianBlurImageChannel(), GetAffineMatrix(), GetAuthenticIndexesFromCache(), GetAuthenticIndexesFromStream(), GetAuthenticIndexQueue(), GetAuthenticPixelCacheNexus(), GetAuthenticPixelQueue(), GetAuthenticPixels(), GetAuthenticPixelsFromCache(), GetAuthenticPixelsFromStream(), GetAuthenticPixelsStream(), GetBlobError(), GetBlobProperties(), GetBlobSize(), GetBlobStreamHandler(), GetBlurKernel(), GetCacheViewAuthenticIndexQueue(), GetCacheViewAuthenticPixelQueue(), GetCacheViewAuthenticPixels(), GetCacheViewColorspace(), GetCacheViewException(), GetCacheViewExtent(), GetCacheViewStorageClass(), GetCacheViewVirtualIndexQueue(), GetCacheViewVirtualPixelQueue(), GetCacheViewVirtualPixels(), GetCoderInfoList(), GetCoderList(), GetColorInfoList(), GetColorList(), GetColorTuple(), GetConfigureBlob(), GetConfigureInfoList(), GetConfigureList(), GetConfigureOption(), GetConfigureOptions(), GetConfigurePaths(), GetConfigureValue(), GetDelegateCommand(), GetDelegateCommands(), GetDelegateInfoList(), GetDelegateList(), GetDelegateMode(), GetDelegateThreadSupport(), GetDrawInfo(), GetImageAlphaChannel(), GetImageArtifact(), GetImageAttribute(), GetImageBoundingBox(), GetImageChannelDepth(), GetImageChannelDistortion(), GetImageChannelDistortions(), GetImageChannelExtrema(), GetImageChannelKurtosis(), GetImageChannelMean(), GetImageChannelRange(), GetImageChannelStatistics(), GetImageClipMask(), GetImageDecoder(), GetImageDynamicThreshold(), GetImageEncoder(), GetImageException(), GetImageExtent(), GetImageFromList(), GetImageGeometry(), GetImageInfo(), GetImageList(), GetImageListIndex(), GetImageListLength(), GetImageListSize(), GetImageMagick(), GetImageMask(), GetImageOption(), GetImagePixelCache(), GetImageProfile(), GetImageProperty(), GetImageQuantizeError(), GetImageReferenceCount(), GetImageRegistry(), GetImageTotalInkDensity(), GetImageType(), GetImageVirtualPixelMethod(), GetLastValueInLinkedList(), GetLocaleInfoList(), GetLocaleList(), GetLocaleOptions(), GetLocaleValue(), GetLogInfoList(), GetLogList(), GetMagicInfoList(), GetMagickAdjoin(), GetMagickBlobSupport(), GetMagickDescription(), GetMagickEndianSupport(), GetMagickGeometry(), GetMagickInfoList(), GetMagickList(), GetMagickRawSupport(), GetMagickSeekableStream(), GetMagickThreadSupport(), GetMagicList(), GetMagicName(), GetMimeDescription(), GetMimeInfoList(), GetMimeList(), GetMimeType(), GetMontageInfo(), GetMotionBlurKernel(), GetMultilineTypeMetrics(), GetNextImage(), GetNextImageArtifact(), GetNextImageInList(), GetNextImageOption(), GetNextImageProfile(), GetNextImageProperty(), GetNextImageRegistry(), GetNextKeyInHashmap(), GetNextKeyInSplayTree(), GetNextValueInHashmap(), GetNextValueInLinkedList(), GetNextValueInSplayTree(), GetNextXMLTreeTag(), GetNumberOfElementsInLinkedList(), GetNumberOfEntriesInHashmap(), GetNumberOfNodesInSplayTree(), GetNumberScenes(), GetOneAuthenticPixel(), GetOneAuthenticPixelFromCache(), GetOneCacheViewAuthenticPixel(), GetOneCacheViewVirtualMethodPixel(), GetOneCacheViewVirtualPixel(), GetOptimalKernelWidth1D(), GetOptimalKernelWidth2D(), GetPageGeometry(), GetPathComponent(), GetPixelCacheColorspace(), GetPixelCacheNexusPixels(), GetPixelCacheStorageClass(), GetPixelCacheTileSize(), GetPixelCacheType(), GetPixelCacheVirtualMethod(), GetPolicyInfoList(), GetPolicyList(), GetPolicyValue(), GetPreviousImage(), GetQuantizeInfo(), GetQuantumType(), GetSignatureBlocksize(), GetSignatureDigest(), GetSignatureDigestsize(), GetThresholdMapFile(), GetTypeInfoList(), GetTypeList(), GetTypeMetrics(), GetValueFromHashmap(), GetValueFromLinkedList(), GetValueFromSplayTree(), GetVirtualIndexesFromCache(), GetVirtualIndexesFromStream(), GetVirtualIndexQueue(), GetVirtualPixelCache(), GetVirtualPixelQueue(), GetVirtualPixels(), GetVirtualPixelsCache(), GetVirtualPixelsFromNexus(), GetVirtualPixelsStream(), GetVirtualPixelStream(), GetXMLTreeAttribute(), GetXMLTreeAttributes(), GetXMLTreeChild(), GetXMLTreeContent(), GetXMLTreeOrdered(), GetXMLTreePath(), GetXMLTreeProcessingInstructions(), GetXMLTreeSibling(), GetXMLTreeTag(), GradientImage(), HaldClutImageChannel(), HuffmanDecodeImage(), HuffmanEncodeImage(), IdentifyImage(), IdentityAffine(), ImageListToArray(), ImagesToBlob(), ImageToBlob(), ImageToFile(), ImplodeImage(), ImportImagePixels(), ImportQuantumPixels(), InitializeSignature(), InjectImageBlob(), InsertImageInList(), InsertValueInLinkedList(), InsertValueInSortedLinkedList(), InterpretImageAttributes(), InterpretImageProperties(), InverseFourierTransformImage(), InvokeDelegate(), IsBlobExempt(), IsBlobSeekable(), IsBlobTemporary(), IsGrayImage(), IsHashmapEmpty(), IsHighDynamicRangeImage(), IsHistogramImage(), IsImageObject(), IsImageSimilar(), IsLinkedListEmpty(), IsMonochromeImage(), IsOpaqueImage(), IsPaletteImage(), IsRightsAuthorized(), IsSubimage(), IsTaintImage(), LevelColorsImageChannel(), LevelImageChannel(), LevelizeImageChannel(), LiberateMemory(), LiberateSemaphoreInfo(), LinkedListToArray(), LiquidRescaleImage(), ListFiles(), ListThresholdMapFile(), LoadCoderList(), LoadColorList(), LoadConfigureList(), LoadDelegateList(), LoadLocaleList(), LoadMagicList(), LoadMimeList(), LoadPolicyList(), LoadTypeList(), LogPathInfo(), LogPolygonInfo(), LogPrimitiveInfo(), LZWEncodeImage(), MagickIncarnate(), MagickMonitor(), MagnifyImage(), MapImage(), MapImages(), MaskPixelCacheNexus(), MatteFloodfillImage(), MedianFilterImage(), MergeImageLayers(), MinifyImage(), ModifyImage(), ModulateImage(), MontageImageList(), MorphImages(), MotionBlurImageChannel(), NegateImageChannel(), NewMagickImage(), OilPaintImage(), OpaqueImage(), OpaquePaintImageChannel(), OpenBlob(), OpenPixelCache(), OptimizeImageTransparency(), OptimizeLayerFrames(), OrderedPosterizeImageChannel(), PackbitsEncodeImage(), ParseImageGeometry(), ParseMetaGeometry(), ParseSizeGeometry(), PasskeyDecipherImage(), PasskeyEncipherImage(), PersistPixelCache(), PingBlob(), PingImage(), PingImages(), PlasmaImage(), PolaroidImage(), PopImageList(), PosterizeImage(), PostscriptGeometry(), PreviewImage(), PrintStringInfo(), ProfileImage(), PruneTagFromXMLTree(), PushImageList(), PutEntryInHashmap(), QuantizationError(), QuantizeImage(), QuantizeImages(), QueryMagickColor(), QueueAuthenticPixels(), QueueCacheViewAuthenticPixels(), RadialBlurImageChannel(), RaiseImage(), RandomChannelThresholdImage(), RandomThresholdImageChannel(), ReacquireMemory(), ReadImage(), ReadImages(), ReadPixelCacheIndexes(), ReadPixelCachePixels(), ReadStream(), RecolorImage(), ReduceNoiseImage(), ReferenceBlob(), ReferenceImage(), ReferencePixelCache(), RegisterMagickInfo(), RegisterMagickSignalHandler(), RegistryComponentTerminus(), RelinquishMagickResource(), RelinquishUniqueFileResource(), RemapImage(), RemapImages(), RemoteDisplayCommand(), RemoveDuplicateLayers(), RemoveElementByValueFromLinkedList(), RemoveElementFromLinkedList(), RemoveEntryFromHashmap(), RemoveFirstImageFromList(), RemoveImageArtifact(), RemoveImageFromList(), RemoveImageOption(), RemoveImageProfile(), RemoveImageProperty(), RemoveImageRegistry(), RemoveLastElementFromLinkedList(), RemoveLastImageFromList(), RemoveNodeByValueFromSplayTree(), RemoveNodeFromSplayTree(), RemoveZeroDelayLayers(), RenderPostscript(), ReplaceImageInList(), ResampleImage(), ResetHashmapIterator(), ResetImageArtifactIterator(), ResetImageOptionIterator(), ResetImageOptions(), ResetImagePage(), ResetImageProfileIterator(), ResetImagePropertyIterator(), ResetImageRegistryIterator(), ResetLinkedListIterator(), ResetSplayTree(), ResetSplayTreeIterator(), ResetStringInfo(), ResizeImage(), ReverseImageList(), RGBTransformImage(), RollImage(), RotateImage(), SampleImage(), ScaleImage(), SeekBlob(), SegmentImage(), SelectiveBlurImageChannel(), SeparateImageChannel(), SeparateImages(), SepiaToneImage(), SetBlobExempt(), SetBlobExtent(), SetCacheThreshold(), SetCacheViewStorageClass(), SetCacheViewVirtualPixelMethod(), SetGeometry(), SetGeometryInfo(), SetImage(), SetImageAlphaChannel(), SetImageArtifact(), SetImageAttribute(), SetImageBackgroundColor(), SetImageChannelDepth(), SetImageClipMask(), SetImageInfo(), SetImageInfoBlob(), SetImageInfoFile(), SetImageList(), SetImageMask(), SetImageOpacity(), SetImageOption(), SetImageProfile(), SetImageProperty(), SetImageRegistry(), SetImageType(), SetImageVirtualPixelMethod(), SetMagickInfo(), SetPixelCacheMethods(), SetPixelCacheNexusPixels(), SetPixelCacheVirtualMethod(), SetQuantumDepth(), SetQuantumFormat(), SetQuantumImageType(), SetQuantumPad(), SetResampleFilterInterpolateMethod(), SetResampleFilterVirtualPixelMethod(), SetStringInfo(), SetStringInfoDatum(), SetStringInfoLength(), SetStringInfoPath(), SetXMLTreeAttribute(), SetXMLTreeContent(), ShadeImage(), ShadowImage(), SharpenImageChannel(), ShaveImage(), ShearImage(), ShiftImageList(), SigmoidalContrastImageChannel(), SignatureImage(), SimilarityImage(), SizeBlob(), SolarizeImage(), SortColormapByIntensity(), SparseColorImage(), SpliceImage(), SpliceImageIntoList(), SpliceImageList(), SplitStringInfo(), SpreadImage(), SteganoImage(), StereoAnaglyphImage(), StreamImage(), StreamImagePixels(), StringToStringInfo(), Strip(), StripImage(), SwirlImage(), SyncAuthenticPixelCacheNexus(), SyncAuthenticPixels(), SyncAuthenticPixelsStream(), SyncBlob(), SyncCacheViewAuthenticPixels(), SyncImage(), SyncImageSettings(), SyncImagesSettings(), TellBlob(), TemporaryFilename(), TextureImage(), ThresholdImage(), ThresholdImageChannel(), ThrowMagickExceptionList(), ThumbnailImage(), TintImage(), TransformColorspace(), TransformImage(), TransformImageColorspace(), TransformImages(), TransformRGBImage(), TranslateText(), TransparentImage(), TransparentPaintImage(), TransparentPaintImageChroma(), TransposeImage(), TransverseImage(), TrimImage(), UnsharpMaskImageChannel(), UnshiftImageList(), ValidateColormapIndex(), VignetteImage(), WaveImage(), WhiteThresholdImageChannel(), WriteImage(), WriteImages(), WritePixelCacheIndexes(), WritePixelCachePixels(), WriteStream(), XAnnotateImage(), XBestIconSize(), XBestPixel(), XBestVisualInfo(), XCheckDefineCursor(), XCheckRefreshWindows(), XClientWindow(), XColorBrowserWidget(), XCommandWidget(), XConfirmWidget(), XConstrainWindowPosition(), XDestroyWindowColors(), XDialogWidget(), XDisplayImageInfo(), XDrawImage(), XError(), XFileBrowserWidget(), XFontBrowserWidget(), XFreeResources(), XFreeStandardColormap(), XGetAnnotateInfo(), XGetMapInfo(), XGetPixelPacket(), XGetResourceInfo(), XGetWindowColor(), XGetWindowImage(), XGetWindowInfo(), XHighlightEllipse(), XHighlightLine(), XHighlightRectangle(), XImportImage(), XInfoWidget(), XInitializeWindows(), XListBrowserWidget(), XMakeCursor(), XMakeImage(), XMakeImageLSBFirst(), XMakeImageMSBFirst(), XMakeMagnifyImage(), XMakePixmap(), XMakeStandardColormap(), XMakeWindow(), XMenuWidget(), XMLTreeInfoToXML(), XNoticeWidget(), XPreferencesWidget(), XProgressMonitorWidget(), XQueryPosition(), XRefreshWindow(), XRemoteCommand(), XRetainWindowColors(), XSelectWindow(), XSetCursorState(), XShearImage(), XTextViewWidget(), XWindowByID(), XWindowByName(), XWindowByProperty(), YShearImage(), ZLIBEncodeImage(), and ZoomImage().

MagickBooleanType LogMagickEventList ( const LogEventType  type,
const char *  module,
const char *  function,
const unsigned long  line,
const char *  format,
va_list  operands 
)
static LogHandlerType ParseLogHandlers ( const char *  handlers  )  [static]

Definition at line 1613 of file log.c.

References LocaleNCompare(), LogHandlers, _HandlerInfo::name, NoHandler, and UndefinedHandler.

Referenced by LoadLogList().

MagickExport LogEventType SetLogEventMask ( const char *  events  ) 
MagickExport void SetLogFormat ( const char *  format  ) 
MagickExport const char* SetLogName ( const char *  name  ) 

Definition at line 1760 of file log.c.

References CopyMagickString(), log_name, and MaxTextExtent.

static char* TranslateEvent ( const LogEventType   magick_unusedtype,
const char *  module,
const char *  function,
const unsigned long  line,
const char *  domain,
const char *  event 
) [static]
static char* TranslateFilename ( const LogInfo log_info  )  [static]

Variable Documentation

volatile MagickBooleanType instantiate_log = MagickFalse [static]

Definition at line 182 of file log.c.

Referenced by GetLogInfo(), InitializeLogList(), and LogComponentTerminus().

LinkedListInfo* log_list = (LinkedListInfo *) NULL [static]
char log_name[MaxTextExtent] = "Magick" [static]

Definition at line 173 of file log.c.

Referenced by GetLogName(), and SetLogName().

const HandlerInfo LogHandlers[] [static]
Initial value:
  {
    { "console", ConsoleHandler },
    { "debug", DebugHandler },
    { "event", EventHandler },
    { "file", FileHandler },
    { "none", NoHandler },
    { "stderr", StderrHandler },
    { "stdout", StdoutHandler },
    { (char *) NULL, UndefinedHandler }
  }

Definition at line 153 of file log.c.

Referenced by ParseLogHandlers().

const LogMapInfo LogMap[] [static]
Initial value:
  {
    { NoEvents, ConsoleHandler, "Magick-%d.log",
      "%t %r %u %v %d %c[%p]: %m/%f/%l/%d\n  %e" }
  }

Definition at line 166 of file log.c.

Referenced by LoadLogLists().


Generated on 19 Nov 2009 for MagickCore by  doxygen 1.6.1