Page Speed Optimization Libraries  1.12.34.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
net_instaweb::ApacheMessageHandler Class Reference

#include "apache_message_handler.h"

Inheritance diagram for net_instaweb::ApacheMessageHandler:
net_instaweb::SystemMessageHandler net_instaweb::GoogleMessageHandler net_instaweb::MessageHandler

Public Member Functions

 ApacheMessageHandler (const server_rec *server, const StringPiece &version, Timer *timer, AbstractMutex *mutex)
 
- Public Member Functions inherited from net_instaweb::SystemMessageHandler
 SystemMessageHandler (Timer *timer, AbstractMutex *mutex)
 
void set_buffer (Writer *buff)
 
void SetPidString (const int64 pid)
 
virtual bool Dump (Writer *writer)
 Dump contents of SharedCircularBuffer.
 
- Public Member Functions inherited from net_instaweb::GoogleMessageHandler
GoogleString Format (const char *msg, va_list args)
 
- Public Member Functions inherited from net_instaweb::MessageHandler
const char * MessageTypeToString (const MessageType type) const
 String representation for MessageType.
 
void set_min_message_type (MessageType min)
 
void Message (MessageType type, const char *msg,...) INSTAWEB_PRINTF_FORMAT(3
 Log an info, warning, error or fatal error message.
 
void void MessageV (MessageType type, const char *msg, va_list args)
 
void FileMessage (MessageType type, const char *filename, int line, const char *msg,...) INSTAWEB_PRINTF_FORMAT(5
 Log a message with a filename and line number attached.
 
void void FileMessageV (MessageType type, const char *filename, int line, const char *msg, va_list args)
 
void Check (bool condition, const char *msg,...) INSTAWEB_PRINTF_FORMAT(3
 Conditional errors.
 
void void CheckV (bool condition, const char *msg, va_list args)
 
void Info (const char *filename, int line, const char *msg,...) INSTAWEB_PRINTF_FORMAT(4
 
void void Warning (const char *filename, int line, const char *msg,...) INSTAWEB_PRINTF_FORMAT(4
 
void void void Error (const char *filename, int line, const char *msg,...) INSTAWEB_PRINTF_FORMAT(4
 
void void void void FatalError (const char *filename, int line, const char *msg,...) INSTAWEB_PRINTF_FORMAT(4
 
void void void void void InfoV (const char *filename, int line, const char *msg, va_list args)
 
void WarningV (const char *filename, int line, const char *msg, va_list a)
 
void ErrorV (const char *filename, int line, const char *msg, va_list args)
 
void FatalErrorV (const char *fname, int line, const char *msg, va_list a)
 
void MessageS (MessageType type, const GoogleString &message)
 
void FileMessageS (MessageType type, const char *filename, int line, const GoogleString &message)
 
virtual void ParseMessageDumpIntoMessages (StringPiece message_dump, StringPieceVector *messages)
 Parse the dumped log into messages.
 
virtual MessageType GetMessageType (StringPiece message)
 Return the message type.
 
virtual StringPiece ReformatMessage (StringPiece message)
 Make the message look more readable when rendering to history page.
 

Static Public Member Functions

static void InstallCrashHandler (server_rec *global_server)
 
- Static Public Member Functions inherited from net_instaweb::MessageHandler
static MessageType StringToMessageType (const StringPiece &msg)
 Convert string to MessageType.
 

Protected Member Functions

virtual void MessageSImpl (MessageType type, const GoogleString &message)
 
virtual void FileMessageSImpl (MessageType type, const char *filename, int line, const GoogleString &message)
 
- Protected Member Functions inherited from net_instaweb::SystemMessageHandler
void AddMessageToBuffer (MessageType type, StringPiece formatted_message)
 Add messages to the SharedCircularBuffer.
 
void AddMessageToBuffer (MessageType type, const char *file, int line, StringPiece formatted_message)
 
virtual void MessageVImpl (MessageType type, const char *msg, va_list args)
 
virtual void FileMessageVImpl (MessageType type, const char *file, int line, const char *msg, va_list args)
 
- Protected Member Functions inherited from net_instaweb::MessageHandler
void FormatTo (GoogleString *buffer, const char *msg, va_list args)
 FormatTo appends to *buffer.
 

Detailed Description

Implementation of an HTML parser message handler that uses Apache logging to emit messsages.

Constructor & Destructor Documentation

net_instaweb::ApacheMessageHandler::ApacheMessageHandler ( const server_rec *  server,
const StringPiece &  version,
Timer timer,
AbstractMutex mutex 
)

version is a string added to each message. Timer is used to generate timestamp for messages in shared memory.

Member Function Documentation

static void net_instaweb::ApacheMessageHandler::InstallCrashHandler ( server_rec *  global_server)
static

Installs a signal handler for common crash signals that tries to print out a backtrace.

virtual void net_instaweb::ApacheMessageHandler::MessageSImpl ( MessageType  type,
const GoogleString message 
)
protectedvirtual

These methods don't perform any formatting on the string, since it turns out delegating message_handlers generally only need to format once at the top of the stack and then propagate the formatted string inwards.

Reimplemented from net_instaweb::GoogleMessageHandler.


The documentation for this class was generated from the following file: