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

Method createLog

plugins/background_fetch/background_fetch.cc:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 ~BgFetchState() { TSMutexDestroy(_lock); }
78
79 void
80 createLog(const std::string &log_name)
81 {
82 if (!_log) {
83 Dbg(Bg_dbg_ctl, "Creating log name %s", log_name.c_str());
84 TSAssert(TS_SUCCESS == TSTextLogObjectCreate(log_name.c_str(), TS_LOG_MODE_ADD_TIMESTAMP, &_log));
85 } else {
86 TSError("[%s] A log file was already create, ignoring creation of %s", PLUGIN_NAME, log_name.c_str());
87 }
88 }
89
90 TSTextLogObject
91 getLog()

Callers 2

TSPluginInitFunction · 0.80
TSRemapNewInstanceFunction · 0.80

Calls 3

TSTextLogObjectCreateFunction · 0.85
TSErrorFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected