MCPcopy Create free account
hub / github.com/apache/mesos / getLogFile

Function getLogFile

src/logging/logging.cpp:527–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525
526
527Try<string> getLogFile(google::LogSeverity severity)
528{
529 if (FLAGS_log_dir.empty()) {
530 return Error("The 'log_dir' option was not specified");
531 }
532
533 if (severity < 0 || google::NUM_SEVERITIES <= severity) {
534 return Error("Unknown log severity: " + stringify(severity));
535 }
536
537 return path::join(FLAGS_log_dir, Path(argv0).basename()) + "." +
538 google::GetLogSeverityName(severity);
539}
540
541} // namespace logging {
542} // namespace internal {

Callers 2

initializeMethod · 0.85
initializeMethod · 0.85

Calls 6

PathClass · 0.85
ErrorFunction · 0.50
stringifyFunction · 0.50
joinFunction · 0.50
emptyMethod · 0.45
basenameMethod · 0.45

Tested by

no test coverage detected