Page 1 of 1

enable log. MagickCoreApi

Posted: 2009-03-31T21:29:39-07:00
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?

Re: enable log. MagickCoreApi

Posted: 2009-04-01T05:49:05-07:00
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

Re: enable log. MagickCoreApi

Posted: 2009-04-01T16:44:11-07:00
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?

Re: enable log. MagickCoreApi

Posted: 2009-04-01T19:51:10-07:00
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.