Rocket::Core::Log Class Reference

#include <Log.h>


Public Types

enum  Type {
  LT_ALWAYS = 0, LT_ERROR, LT_ASSERT, LT_WARNING,
  LT_INFO, LT_DEBUG, LT_MAX
}

Static Public Member Functions

static bool Initialise ()
static void Shutdown ()
 Shutdown the log interface.
static void Message (Type type, const char *format,...)
static void ParseError (const String &filename, int line_number, const char *format,...)
static void PlatformMessage (const char *message)

Detailed Description

libRocket logging API.

Author:
Lloyd Weehuizen

Member Function Documentation

bool Rocket::Core::Log::Initialise (  )  [static]

Initialises the logging interface.

Returns:
True if the logging interface was successful, false if not.

void Rocket::Core::Log::Message ( Log::Type  type,
const char *  format,
  ... 
) [static]

Log the specified message via the registered log interface

Parameters:
[in] type Type of message.
[in] format The message, with sprintf-style parameters.

void Rocket::Core::Log::ParseError ( const String filename,
int  line_number,
const char *  format,
  ... 
) [static]

Log a parse error on the specified file and line number.

Parameters:
[in] filename Name of the file with the parse error.
[in] line_number Line the error occured on.
[in] format The error message, with sprintf-style parameters.

void Rocket::Core::Log::PlatformMessage ( const char *  message  )  [static]

Low-level platform message. This completely bypasses the log interface and is only used if there was an error talking to the log interface.

Parameters:
[in] message Message to output.


The documentation for this class was generated from the following files:
  • Include/Rocket/Core/Log.h
  • Source/Core/Log.cpp