| 64 | } |
| 65 | |
| 66 | void 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 |
| 76 | namespace logging { |