| 172 | } |
| 173 | |
| 174 | void Write(bool force_flush, |
| 175 | time_t timestamp, |
| 176 | const char* message, |
| 177 | size_t message_len) override { |
| 178 | string message_str(message, message_len); |
| 179 | Status status = logger_.AppendEntry(message_str); |
| 180 | if (!status.ok()) { |
| 181 | LOG_EVERY_N(WARNING, 1000) << "Could not write to data cache access trace (" |
| 182 | << google::COUNTER << " attempts failed): " << status.GetDetail(); |
| 183 | } |
| 184 | if (force_flush) Flush(); |
| 185 | } |
| 186 | |
| 187 | // Flush any buffered messages. |
| 188 | // NOTE: declared 'final' to allow safe calls from the destructor. |
no test coverage detected