| 100 | }; |
| 101 | |
| 102 | static void InitProcessId() { |
| 103 | std::stringstream ss; |
| 104 | ss.imbue(std::locale::classic()); |
| 105 | ss << "p" << getpid() << ", th" << pthread_self(); |
| 106 | snprintf(ProcessId, sizeof(ProcessId), "%s", ss.str().c_str()); |
| 107 | } |
| 108 | |
| 109 | Logger::Logger() : |
| 110 | fd(STDERR_FILENO), severity(DEFAULT_LOG_LEVEL) { |
nothing calls this directly
no test coverage detected