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

Function RecConfigReadLogDir

src/records/RecCore.cc:1030–1042  ·  view source on GitHub ↗

------------------------------------------------------------------------- RecConfigReadLogDir -------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1028// RecConfigReadLogDir
1029//-------------------------------------------------------------------------
1030std::string
1031RecConfigReadLogDir()
1032{
1033 char buf[PATH_NAME_MAX];
1034
1035 buf[0] = '\0';
1036 RecGetRecordString("proxy.config.log.logfile_dir", buf, PATH_NAME_MAX);
1037 if (strlen(buf) > 0) {
1038 return Layout::get()->relative(buf);
1039 } else {
1040 return Layout::get()->logdir;
1041 }
1042}
1043
1044//-------------------------------------------------------------------------
1045// RecConfigReadBinDir

Callers 5

crashlog_nameFunction · 0.85
produce_layoutFunction · 0.85
DiagsConfigMethod · 0.85

Calls 3

RecGetRecordStringFunction · 0.85
relativeMethod · 0.80
getFunction · 0.50

Tested by 1