MCPcopy Create free account
hub / github.com/apache/trafficserver / TSTextLogObjectWrite

Function TSTextLogObjectWrite

src/api/InkAPI.cc:6333–6360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6331}
6332
6333TSReturnCode
6334TSTextLogObjectWrite(TSTextLogObject the_object, const char *format, ...)
6335{
6336 sdk_assert(sdk_sanity_check_iocore_structure(the_object) == TS_SUCCESS);
6337 sdk_assert(sdk_sanity_check_null_ptr((void *)format) == TS_SUCCESS);
6338
6339 TSReturnCode retVal = TS_SUCCESS;
6340
6341 va_list ap;
6342 va_start(ap, format);
6343 switch ((reinterpret_cast<TextLogObject *>(the_object))->va_write(format, ap)) {
6344 case (Log::LOG_OK):
6345 case (Log::SKIP):
6346 case (Log::AGGR):
6347 break;
6348 case (Log::FULL):
6349 retVal = TS_ERROR;
6350 break;
6351 case (Log::FAIL):
6352 retVal = TS_ERROR;
6353 break;
6354 default:
6355 ink_assert(!"invalid return code");
6356 }
6357 va_end(ap);
6358
6359 return retVal;
6360}
6361
6362void
6363TSTextLogObjectFlush(TSTextLogObject the_object)

Callers 15

protocol_initFunction · 0.85
dump_contextFunction · 0.85
psi_includeFunction · 0.85
handle_dnsFunction · 0.85
global_handlerFunction · 0.85
logAndMetricUpdateMethod · 0.85
logMethod · 0.85
list_configFunction · 0.85
log_tcp_infoFunction · 0.85
log_fingerprintFunction · 0.85

Calls 3

va_writeMethod · 0.80

Tested by 2

global_handlerFunction · 0.68