Lines Matching refs:log_info

299       *log_info;  in AcquireLogCache()  local
305 log_info=(LogInfo *) AcquireMagickMemory(sizeof(*log_info)); in AcquireLogCache()
306 if (log_info == (LogInfo *) NULL) in AcquireLogCache()
312 (void) ResetMagickMemory(log_info,0,sizeof(*log_info)); in AcquireLogCache()
313 log_info->path=ConstantString("[built-in]"); in AcquireLogCache()
314 GetTimerInfo((TimerInfo *) &log_info->timer); in AcquireLogCache()
315 log_info->event_mask=p->event_mask; in AcquireLogCache()
316 log_info->handler_mask=p->handler_mask; in AcquireLogCache()
317 log_info->filename=ConstantString(p->filename); in AcquireLogCache()
318 log_info->format=ConstantString(p->format); in AcquireLogCache()
319 log_info->signature=MagickCoreSignature; in AcquireLogCache()
320 status&=AppendValueToLinkedList(cache,log_info); in AcquireLogCache()
323 ResourceLimitError,"MemoryAllocationFailed","`%s'",log_info->name); in AcquireLogCache()
352 *log_info; in CloseMagickLog() local
357 log_info=GetLogInfo("*",exception); in CloseMagickLog()
360 if (log_info->file != (FILE *) NULL) in CloseMagickLog()
362 (void) FormatLocaleFile(log_info->file,"</log>\n"); in CloseMagickLog()
363 (void) fclose(log_info->file); in CloseMagickLog()
364 log_info->file=(FILE *) NULL; in CloseMagickLog()
695 *log_info; in IsEventLogging() local
704 log_info=GetLogInfo("*",exception); in IsEventLogging()
706 return(log_info->event_mask != NoEvents ? MagickTrue : MagickFalse); in IsEventLogging()
740 **log_info; in ListLogInfo() local
753 log_info=GetLogInfoList("*",&number_aliases,exception); in ListLogInfo()
754 if (log_info == (const LogInfo **) NULL) in ListLogInfo()
760 if (log_info[i]->stealth != MagickFalse) in ListLogInfo()
763 (LocaleCompare(path,log_info[i]->path) != 0)) in ListLogInfo()
768 if (log_info[i]->path != (char *) NULL) in ListLogInfo()
769 (void) FormatLocaleFile(file,"\nPath: %s\n\n",log_info[i]->path); in ListLogInfo()
780 if ((log_info[i]->handler_mask & mask) != 0) in ListLogInfo()
792 path=log_info[i]->path; in ListLogInfo()
793 if (log_info[i]->filename != (char *) NULL) in ListLogInfo()
795 (void) FormatLocaleFile(file,"%s",log_info[i]->filename); in ListLogInfo()
796 for (j=(ssize_t) strlen(log_info[i]->filename); j <= 16; j++) in ListLogInfo()
799 (void) FormatLocaleFile(file,"%9g ",(double) log_info[i]->generations); in ListLogInfo()
800 (void) FormatLocaleFile(file,"%8g ",(double) log_info[i]->limit); in ListLogInfo()
801 if (log_info[i]->format != (char *) NULL) in ListLogInfo()
802 (void) FormatLocaleFile(file,"%s",log_info[i]->format); in ListLogInfo()
806 log_info=(const LogInfo **) RelinquishMagickMemory((void *) log_info); in ListLogInfo()
861 static void *DestroyLogElement(void *log_info) in DestroyLogElement() argument
866 p=(LogInfo *) log_info; in DestroyLogElement()
946 *log_info; in TranslateEvent() local
961 log_info=(LogInfo *) GetLogInfo("*",exception); in TranslateEvent()
964 elapsed_time=GetElapsedTime(&log_info->timer); in TranslateEvent()
965 user_time=GetUserTime(&log_info->timer); in TranslateEvent()
967 if (log_info->format == (char *) NULL) in TranslateEvent()
970 if (LocaleCompare(log_info->format,"xml") == 0) in TranslateEvent()
1002 for (p=log_info->format; *p != '\0'; p++) in TranslateEvent()
1076 if (log_info->generations == 0) in TranslateEvent()
1082 q+=FormatLocaleString(q,extent,"%.20g",(double) (log_info->generation % in TranslateEvent()
1083 log_info->generations)); in TranslateEvent()
1154 static char *TranslateFilename(const LogInfo *log_info) in TranslateFilename() argument
1171 assert(log_info != (LogInfo *) NULL); in TranslateFilename()
1172 assert(log_info->filename != (char *) NULL); in TranslateFilename()
1176 for (p=log_info->filename; *p != '\0'; p++) in TranslateFilename()
1213 if (log_info->generations == 0) in TranslateFilename()
1219 q+=FormatLocaleString(q,extent,"%.20g",(double) (log_info->generation % in TranslateFilename()
1220 log_info->generations)); in TranslateFilename()
1272 *log_info; in LogMagickEventList() local
1277 log_info=(LogInfo *) GetLogInfo("*",exception); in LogMagickEventList()
1282 if ((log_info->event_mask & type) == 0) in LogMagickEventList()
1298 (void) ContinueTimer((TimerInfo *) &log_info->timer); in LogMagickEventList()
1302 if ((log_info->handler_mask & ConsoleHandler) != 0) in LogMagickEventList()
1307 if ((log_info->handler_mask & DebugHandler) != 0) in LogMagickEventList()
1314 if ((log_info->handler_mask & EventHandler) != 0) in LogMagickEventList()
1320 if ((log_info->handler_mask & FileHandler) != 0) in LogMagickEventList()
1326 if (log_info->file != (FILE *) NULL) in LogMagickEventList()
1327 (void) fstat(fileno(log_info->file),&file_info); in LogMagickEventList()
1328 if (file_info.st_size > (ssize_t) (1024*1024*log_info->limit)) in LogMagickEventList()
1330 (void) FormatLocaleFile(log_info->file,"</log>\n"); in LogMagickEventList()
1331 (void) fclose(log_info->file); in LogMagickEventList()
1332 log_info->file=(FILE *) NULL; in LogMagickEventList()
1334 if (log_info->file == (FILE *) NULL) in LogMagickEventList()
1339 filename=TranslateFilename(log_info); in LogMagickEventList()
1342 (void) ContinueTimer((TimerInfo *) &log_info->timer); in LogMagickEventList()
1346 log_info->append=IsPathAccessible(filename); in LogMagickEventList()
1347 log_info->file=fopen_utf8(filename,"ab"); in LogMagickEventList()
1349 if (log_info->file == (FILE *) NULL) in LogMagickEventList()
1354 log_info->generation++; in LogMagickEventList()
1355 if (log_info->append == MagickFalse) in LogMagickEventList()
1356 (void) FormatLocaleFile(log_info->file,"<?xml version=\"1.0\" " in LogMagickEventList()
1358 (void) FormatLocaleFile(log_info->file,"<log>\n"); in LogMagickEventList()
1360 (void) FormatLocaleFile(log_info->file," <event>%s</event>\n",text); in LogMagickEventList()
1361 (void) fflush(log_info->file); in LogMagickEventList()
1363 if ((log_info->handler_mask & MethodHandler) != 0) in LogMagickEventList()
1365 if (log_info->method != (MagickLogMethod) NULL) in LogMagickEventList()
1366 log_info->method(type,text); in LogMagickEventList()
1368 if ((log_info->handler_mask & StdoutHandler) != 0) in LogMagickEventList()
1373 if ((log_info->handler_mask & StderrHandler) != 0) in LogMagickEventList()
1379 (void) ContinueTimer((TimerInfo *) &log_info->timer); in LogMagickEventList()
1440 *log_info = (LogInfo *) NULL; in LoadLogCache() local
1531 log_info=(LogInfo *) AcquireMagickMemory(sizeof(*log_info)); in LoadLogCache()
1532 if (log_info == (LogInfo *) NULL) in LoadLogCache()
1534 (void) ResetMagickMemory(log_info,0,sizeof(*log_info)); in LoadLogCache()
1535 log_info->path=ConstantString(filename); in LoadLogCache()
1536 GetTimerInfo((TimerInfo *) &log_info->timer); in LoadLogCache()
1537 log_info->signature=MagickCoreSignature; in LoadLogCache()
1540 if (log_info == (LogInfo *) NULL) in LoadLogCache()
1544 status=AppendValueToLinkedList(cache,log_info); in LoadLogCache()
1548 log_info=(LogInfo *) NULL; in LoadLogCache()
1563 log_info->event_mask=(LogEventType) (log_info->event_mask | in LoadLogCache()
1574 if (log_info->filename != (char *) NULL) in LoadLogCache()
1575 log_info->filename=(char *) in LoadLogCache()
1576 RelinquishMagickMemory(log_info->filename); in LoadLogCache()
1577 log_info->filename=ConstantString(token); in LoadLogCache()
1582 if (log_info->format != (char *) NULL) in LoadLogCache()
1583 log_info->format=(char *) in LoadLogCache()
1584 RelinquishMagickMemory(log_info->format); in LoadLogCache()
1585 log_info->format=ConstantString(token); in LoadLogCache()
1597 log_info->generations=(~0UL); in LoadLogCache()
1600 log_info->generations=StringToUnsignedLong(token); in LoadLogCache()
1612 log_info->limit=(~0UL); in LoadLogCache()
1615 log_info->limit=StringToUnsignedLong(token); in LoadLogCache()
1625 log_info->handler_mask=(LogHandlerType) in LoadLogCache()
1626 (log_info->handler_mask | ParseLogHandlers(token)); in LoadLogCache()
1729 *log_info; in SetLogEventMask() local
1735 log_info=(LogInfo *) GetLogInfo("*",exception); in SetLogEventMask()
1739 log_info=(LogInfo *) GetValueFromLinkedList(log_cache,0); in SetLogEventMask()
1740 log_info->event_mask=(LogEventType) option; in SetLogEventMask()
1742 log_info->event_mask=UndefinedEvents; in SetLogEventMask()
1744 return(log_info->event_mask); in SetLogEventMask()
1772 *log_info; in SetLogFormat() local
1778 log_info=(LogInfo *) GetLogInfo("*",exception); in SetLogFormat()
1781 if (log_info->format != (char *) NULL) in SetLogFormat()
1782 log_info->format=DestroyString(log_info->format); in SetLogFormat()
1783 log_info->format=ConstantString(format); in SetLogFormat()
1816 *log_info; in SetLogMethod() local
1819 log_info=(LogInfo *) GetLogInfo("*",exception); in SetLogMethod()
1822 log_info=(LogInfo *) GetValueFromLinkedList(log_cache,0); in SetLogMethod()
1823 log_info->handler_mask=(LogHandlerType) (log_info->handler_mask | in SetLogMethod()
1825 log_info->method=method; in SetLogMethod()