19 #ifndef PAGESPEED_SYSTEM_SYSTEM_MESSAGE_HANDLER_H_
20 #define PAGESPEED_SYSTEM_SYSTEM_MESSAGE_HANDLER_H_
32 namespace net_instaweb {
51 void SetPidString(
const int64 pid) {
52 pid_string_ = StrCat(
"[", Integer64ToString(pid),
"]");
62 StringPiece formatted_message);
66 virtual void MessageVImpl(MessageType type,
const char* msg, va_list args);
67 virtual void FileMessageVImpl(MessageType type,
const char* file,
68 int line,
const char* msg, va_list args);
71 friend class SystemMessageHandlerTest;
Implementation of a message handler that does nothing.
Definition: null_message_handler.h:31
virtual void MessageVImpl(MessageType type, const char *msg, va_list args)
Abstract interface for implementing a mutex.
Definition: abstract_mutex.h:28
Definition: scoped_ptr.h:30
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
void AddMessageToBuffer(MessageType type, StringPiece formatted_message)
Add messages to the SharedCircularBuffer.
virtual bool Dump(Writer *writer)
Dump contents of SharedCircularBuffer.
Interface for writing bytes to an output stream.
Definition: writer.h:29
void set_buffer(Writer *buff)
Definition: system_message_handler.h:40
Timer interface, made virtual so it can be mocked for tests.
Definition: timer.h:27
Definition: google_message_handler.h:35