MCPcopy Create free account
hub / github.com/apache/singa / SetLogDestination

Function SetLogDestination

src/utils/logging.cc:66–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void SetLogDestination(int severity, const char* path) {
67#ifdef USE_GLOG
68 google::SetLogDestination(severity, path);
69#else
70 log_file[severity] = fopen(path, "a");
71 if (severity < ERROR) not_log_stderr[severity] = true;
72#endif
73}
74
75#ifndef USE_GLOG
76namespace logging {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68