| 37 | } |
| 38 | |
| 39 | static std::string GetFileNameFromPath(const std::string& path) { |
| 40 | std::string::size_type pos = path.rfind("/"); |
| 41 | if (pos == std::string::npos) { |
| 42 | return path; |
| 43 | } else { |
| 44 | return path.substr(pos + 1); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | LogCleaner* LogCleaner::GetInstance(ThreadPool* thread_pool) { |
| 49 | if (singleton_instance_ == NULL) { |
no outgoing calls
no test coverage detected