Page Speed Optimization Libraries  1.4.26.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions
net_instaweb::MessageHandler Class Reference
Inheritance diagram for net_instaweb::MessageHandler:
net_instaweb::ApacheMessageHandler net_instaweb::FileMessageHandler net_instaweb::GoogleMessageHandler net_instaweb::NullMessageHandler net_instaweb::PrintMessageHandler net_instaweb::MockMessageHandler

List of all members.

Public Member Functions

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)

Static Public Member Functions

static MessageType StringToMessageType (const StringPiece &msg)
 Convert string to MessageType.

Protected Member Functions

virtual void MessageVImpl (MessageType type, const char *msg, va_list args)=0
virtual void FileMessageVImpl (MessageType type, const char *filename, int line, const char *msg, va_list args)=0

Member Function Documentation

void net_instaweb::MessageHandler::Info ( const char *  filename,
int  line,
const char *  msg,
  ... 
)

Convenience functions for FileMessage for backwards compatibility.

Todo:
TODO(sligocki): Rename these to InfoAt, ... so that Info, ... can be used for general Messages.
void net_instaweb::MessageHandler::set_min_message_type ( MessageType  min) [inline]

Specify the minimum message type. Lower message types will not be logged.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines