Only built-in logger is being used.
Posted: 2013-06-25T22:39:02-07:00
I downloaded ImageMagick-6.8.6-2-Q16-x86-static.exe and made the following changes to log.xml:
I would expect that when I run idenity.exe a log file containing debug information will be written, but no file is being written. I checked the file log.c to see if I could identify the problem. The method LogMagickEventList calls GetLogInfo("*",exception) and that method returns the first logger:
That logger will always be the built-in logger because LoadLogLists adds LogMap to the log_list before loading the file log.xml. I think the desired behavior should be:
Or the settings from log.xml should be inserted at the first position of log_list.
Code: Select all
<log events="All"/>
<log output="file"/>
Code: Select all
if ((name == (const char *) NULL) || (LocaleCompare(name,"*") == 0))
return((LogInfo *) GetValueFromLinkedList(log_list,0));
Code: Select all
if ((name == (const char *) NULL) || (LocaleCompare(name,"*") == 0))
return((LogInfo *) GetLastValueInLinkedList(log_list));