libRocket
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Static Public Member Functions | List of all members
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. More...
 
static void Message (Type type, const char *format,...)
 
static void ParseError (const String &filename, int line_number, const char *format,...)
 

Detailed Description

libRocket logging API.

Author
Lloyd Weehuizen

Member Enumeration Documentation

Enumerator
LT_ALWAYS 
LT_ERROR 
LT_ASSERT 
LT_WARNING 
LT_INFO 
LT_DEBUG 
LT_MAX 

Member Function Documentation

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

Initialises the logging interface.

Returns
True if the logging interface was successful, false if not.
static void Rocket::Core::Log::Message ( Type  type,
const char *  format,
  ... 
)
static

Log the specified message via the registered log interface

Parameters
[in]typeType of message.
[in]formatThe message, with sprintf-style parameters.
static 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]filenameName of the file with the parse error.
[in]line_numberLine the error occured on.
[in]formatThe error message, with sprintf-style parameters.
static void Rocket::Core::Log::Shutdown ( )
static

Shutdown the log interface.


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