• Home
  • Raw
  • Download

Lines Matching refs:log_info

301       *log_info;  in AcquireLogCache()  local
307 log_info=(LogInfo *) AcquireMagickMemory(sizeof(*log_info)); in AcquireLogCache()
308 if (log_info == (LogInfo *) NULL) in AcquireLogCache()
314 (void) memset(log_info,0,sizeof(*log_info)); in AcquireLogCache()
315 log_info->path=ConstantString("[built-in]"); in AcquireLogCache()
316 GetTimerInfo((TimerInfo *) &log_info->timer); in AcquireLogCache()
317 log_info->event_mask=p->event_mask; in AcquireLogCache()
318 log_info->handler_mask=p->handler_mask; in AcquireLogCache()
319 log_info->filename=ConstantString(p->filename); in AcquireLogCache()
320 log_info->format=ConstantString(p->format); in AcquireLogCache()
321 log_info->signature=MagickCoreSignature; in AcquireLogCache()
322 status&=AppendValueToLinkedList(cache,log_info); in AcquireLogCache()
325 ResourceLimitError,"MemoryAllocationFailed","`%s'",log_info->name); in AcquireLogCache()
354 *log_info; in CloseMagickLog() local
359 log_info=GetLogInfo("*",exception); in CloseMagickLog()
362 if (log_info->file != (FILE *) NULL) in CloseMagickLog()
364 (void) FormatLocaleFile(log_info->file,"</log>\n"); in CloseMagickLog()
365 (void) fclose(log_info->file); in CloseMagickLog()
366 log_info->file=(FILE *) NULL; in CloseMagickLog()
754 **log_info; in ListLogInfo() local
767 log_info=GetLogInfoList("*",&number_aliases,exception); in ListLogInfo()
768 if (log_info == (const LogInfo **) NULL) in ListLogInfo()
774 if (log_info[i]->stealth != MagickFalse) in ListLogInfo()
777 (LocaleCompare(path,log_info[i]->path) != 0)) in ListLogInfo()
782 if (log_info[i]->path != (char *) NULL) in ListLogInfo()
783 (void) FormatLocaleFile(file,"\nPath: %s\n\n",log_info[i]->path); in ListLogInfo()
794 if ((log_info[i]->handler_mask & mask) != 0) in ListLogInfo()
806 path=log_info[i]->path; in ListLogInfo()
807 if (log_info[i]->filename != (char *) NULL) in ListLogInfo()
809 (void) FormatLocaleFile(file,"%s",log_info[i]->filename); in ListLogInfo()
810 for (j=(ssize_t) strlen(log_info[i]->filename); j <= 16; j++) in ListLogInfo()
813 (void) FormatLocaleFile(file,"%9g ",(double) log_info[i]->generations); in ListLogInfo()
814 (void) FormatLocaleFile(file,"%8g ",(double) log_info[i]->limit); in ListLogInfo()
815 if (log_info[i]->format != (char *) NULL) in ListLogInfo()
816 (void) FormatLocaleFile(file,"%s",log_info[i]->format); in ListLogInfo()
820 log_info=(const LogInfo **) RelinquishMagickMemory((void *) log_info); in ListLogInfo()
875 static void *DestroyLogElement(void *log_info) in DestroyLogElement() argument
880 p=(LogInfo *) log_info; in DestroyLogElement()
961 *log_info; in TranslateEvent() local
976 log_info=(LogInfo *) GetLogInfo("*",exception); in TranslateEvent()
979 elapsed_time=GetElapsedTime(&log_info->timer); in TranslateEvent()
980 user_time=GetUserTime(&log_info->timer); in TranslateEvent()
982 if (log_info->format == (char *) NULL) in TranslateEvent()
985 if (LocaleCompare(log_info->format,"xml") == 0) in TranslateEvent()
1017 for (p=log_info->format; *p != '\0'; p++) in TranslateEvent()
1091 if (log_info->generations == 0) in TranslateEvent()
1097 q+=FormatLocaleString(q,extent,"%.20g",(double) (log_info->generation % in TranslateEvent()
1098 log_info->generations)); in TranslateEvent()
1169 static char *TranslateFilename(const LogInfo *log_info) in TranslateFilename() argument
1186 assert(log_info != (LogInfo *) NULL); in TranslateFilename()
1187 assert(log_info->filename != (char *) NULL); in TranslateFilename()
1191 for (p=log_info->filename; *p != '\0'; p++) in TranslateFilename()
1228 if (log_info->generations == 0) in TranslateFilename()
1234 q+=FormatLocaleString(q,extent,"%.20g",(double) (log_info->generation % in TranslateFilename()
1235 log_info->generations)); in TranslateFilename()
1288 *log_info; in LogMagickEventList() local
1291 log_info=(LogInfo *) GetLogInfo("*",exception); in LogMagickEventList()
1296 if ((log_info->event_mask & type) == 0) in LogMagickEventList()
1312 (void) ContinueTimer((TimerInfo *) &log_info->timer); in LogMagickEventList()
1316 if ((log_info->handler_mask & ConsoleHandler) != 0) in LogMagickEventList()
1321 if ((log_info->handler_mask & DebugHandler) != 0) in LogMagickEventList()
1328 if ((log_info->handler_mask & EventHandler) != 0) in LogMagickEventList()
1334 if ((log_info->handler_mask & FileHandler) != 0) in LogMagickEventList()
1340 if (log_info->file != (FILE *) NULL) in LogMagickEventList()
1341 (void) fstat(fileno(log_info->file),&file_info); in LogMagickEventList()
1342 if (file_info.st_size > (ssize_t) (1024*1024*log_info->limit)) in LogMagickEventList()
1344 (void) FormatLocaleFile(log_info->file,"</log>\n"); in LogMagickEventList()
1345 (void) fclose(log_info->file); in LogMagickEventList()
1346 log_info->file=(FILE *) NULL; in LogMagickEventList()
1348 if (log_info->file == (FILE *) NULL) in LogMagickEventList()
1353 filename=TranslateFilename(log_info); in LogMagickEventList()
1356 (void) ContinueTimer((TimerInfo *) &log_info->timer); in LogMagickEventList()
1360 log_info->append=IsPathAccessible(filename); in LogMagickEventList()
1361 log_info->file=fopen_utf8(filename,"ab"); in LogMagickEventList()
1363 if (log_info->file == (FILE *) NULL) in LogMagickEventList()
1368 log_info->generation++; in LogMagickEventList()
1369 if (log_info->append == MagickFalse) in LogMagickEventList()
1370 (void) FormatLocaleFile(log_info->file,"<?xml version=\"1.0\" " in LogMagickEventList()
1372 (void) FormatLocaleFile(log_info->file,"<log>\n"); in LogMagickEventList()
1374 (void) FormatLocaleFile(log_info->file," <event>%s</event>\n",text); in LogMagickEventList()
1375 (void) fflush(log_info->file); in LogMagickEventList()
1377 if ((log_info->handler_mask & MethodHandler) != 0) in LogMagickEventList()
1379 if (log_info->method != (MagickLogMethod) NULL) in LogMagickEventList()
1380 log_info->method(type,text); in LogMagickEventList()
1382 if ((log_info->handler_mask & StdoutHandler) != 0) in LogMagickEventList()
1387 if ((log_info->handler_mask & StderrHandler) != 0) in LogMagickEventList()
1393 (void) ContinueTimer((TimerInfo *) &log_info->timer); in LogMagickEventList()
1457 *log_info = (LogInfo *) NULL; in LoadLogCache() local
1548 log_info=(LogInfo *) AcquireCriticalMemory(sizeof(*log_info)); in LoadLogCache()
1549 (void) memset(log_info,0,sizeof(*log_info)); in LoadLogCache()
1550 log_info->path=ConstantString(filename); in LoadLogCache()
1551 GetTimerInfo((TimerInfo *) &log_info->timer); in LoadLogCache()
1552 log_info->signature=MagickCoreSignature; in LoadLogCache()
1555 if (log_info == (LogInfo *) NULL) in LoadLogCache()
1559 status=AppendValueToLinkedList(cache,log_info); in LoadLogCache()
1563 log_info=(LogInfo *) NULL; in LoadLogCache()
1578 log_info->event_mask=(LogEventType) (log_info->event_mask | in LoadLogCache()
1589 if (log_info->filename != (char *) NULL) in LoadLogCache()
1590 log_info->filename=(char *) in LoadLogCache()
1591 RelinquishMagickMemory(log_info->filename); in LoadLogCache()
1592 log_info->filename=ConstantString(token); in LoadLogCache()
1597 if (log_info->format != (char *) NULL) in LoadLogCache()
1598 log_info->format=(char *) in LoadLogCache()
1599 RelinquishMagickMemory(log_info->format); in LoadLogCache()
1600 log_info->format=ConstantString(token); in LoadLogCache()
1612 log_info->generations=(~0UL); in LoadLogCache()
1615 log_info->generations=StringToUnsignedLong(token); in LoadLogCache()
1627 log_info->limit=(~0UL); in LoadLogCache()
1630 log_info->limit=StringToUnsignedLong(token); in LoadLogCache()
1640 log_info->handler_mask=(LogHandlerType) in LoadLogCache()
1641 (log_info->handler_mask | ParseLogHandlers(token)); in LoadLogCache()
1744 *log_info; in SetLogEventMask() local
1750 log_info=(LogInfo *) GetLogInfo("*",exception); in SetLogEventMask()
1754 log_info=(LogInfo *) GetValueFromLinkedList(log_cache,0); in SetLogEventMask()
1755 log_info->event_mask=(LogEventType) option; in SetLogEventMask()
1757 log_info->event_mask=UndefinedEvents; in SetLogEventMask()
1760 return(log_info->event_mask); in SetLogEventMask()
1788 *log_info; in SetLogFormat() local
1794 log_info=(LogInfo *) GetLogInfo("*",exception); in SetLogFormat()
1797 if (log_info->format != (char *) NULL) in SetLogFormat()
1798 log_info->format=DestroyString(log_info->format); in SetLogFormat()
1799 log_info->format=ConstantString(format); in SetLogFormat()
1832 *log_info; in SetLogMethod() local
1835 log_info=(LogInfo *) GetLogInfo("*",exception); in SetLogMethod()
1838 log_info=(LogInfo *) GetValueFromLinkedList(log_cache,0); in SetLogMethod()
1839 log_info->handler_mask=(LogHandlerType) (log_info->handler_mask | in SetLogMethod()
1841 log_info->method=method; in SetLogMethod()