Event logging
Posted: 2006-11-07T10:11:09-07:00
I'm using Windows XP and IM 6.3.0.
I want MagickWand to create an event log to a file. At the beginning of my code I have:
which indicates that logging is on. At the end I have:
which crashes in ListLogInfo.
How do I set up a C MagickWand program so that it logs all events to a file?
Thanks
Pete
I want MagickWand to create an event log to a file. At the beginning of my code I have:
Code: Select all
MagickWandGenesis();
(void) SetLogEventMask("all");
if(IsEventLogging())
MessageBox(NULL,"LOG ON", "Note", MB_OK);
else
MessageBox(NULL,"LOG OFF", "Note", MB_OK);
Code: Select all
GetExceptionInfo(&exception);
logf = fopen("log.txt","wt");
if(ListLogInfo(logf,&exception))
MessageBox(NULL,"LOGGED", "Note", MB_OK);
else
MessageBox(NULL,"LOGGING FAILED", "Note", MB_OK);
fclose(logf);
MagickWandTerminus();
How do I set up a C MagickWand program so that it logs all events to a file?
Thanks
Pete