enable log. MagickCoreApi

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
nicolas1

enable log. MagickCoreApi

Post by nicolas1 »

How to enable log MagickCoreApi?

Found following function:
MagickCore::SetLogEventMask("All");

Called and got not result.

But what is the typical scheme for this?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: enable log. MagickCoreApi

Post by magick »

That should do it. From Magick++ you can call Magick::Option::debug( true ). As a sanity check, set this environment variable:
  • export MAGICK_DEBUG=ALL
nicolas1

Re: enable log. MagickCoreApi

Post by nicolas1 »

Code: Select all

#include <Magick++.h>

Magick::Option::debug(true);

error: Magick::Option - not declared...

Where is it declared?


Btw, how to define log file location?

Found in mogickcore api:
MagickCore::SetLogEventMask("All");

But how to define the rest of things in in mogickcore api?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: enable log. MagickCoreApi

Post by magick »

The log formatting and location is controlled with the log.xml configuration file. If you do not have access to the system location you can always place it in the current directory or ~/.magick/log.xml.
Post Reply