Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

pglog.cpp File Reference

#include "pgapplication.h"
#include "pgwindow.h"
#include "pgmultilineedit.h"
#include "pglog.h"
#include <iostream>
#include <string>
#include <list>
#include <cstring>
#include <cstdarg>
#include <ctime>

Include dependency graph for pglog.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, PG_LogMessage_t *msg)
void PG_Log (PG_LOG_LEVEL id, const char *Text,...)
 Log a message.
void PG_LogMSG (const char *fmt,...)
 Log a message with log level "message".
void PG_LogERR (const char *fmt,...)
 Log a message with log level "error".
void PG_LogWRN (const char *fmt,...)
 Log a message with log level "warning".
void PG_LogDBG (const char *fmt,...)
 Log a message with log level "debug".

Variables

Uint32 PG_LogMaxMessages = 200
int PG_LogMethod = PG_LOGMTH_STDOUT
static PG_LOG_LEVEL PG_LogLevel = PG_LOG_DBG
static SDLKey PG_LogConsoleKey = SDLK_F12
static std::list< PG_LogMessage_t * > PG_LogMessages
static PG_WindowPG_LogWindow = NULL
static PG_MultiLineEditPG_LogWindowData = NULL
static std::string my_title = "ParaGUI Log Console"


Function Documentation

std::ostream& operator<< std::ostream &  os,
PG_LogMessage_t msg
[inline]
 

Definition at line 60 of file pglog.cpp.

References PG_LogMessage_t::Text.

void PG_Log PG_LOG_LEVEL  id,
const char *  Text,
  ...
 

Log a message.

Parameters:
id the log level id of the message
Text a printf format string, arbitrary arguments may follow

Definition at line 271 of file pglog.cpp.

void PG_LogDBG const char *  fmt,
  ...
 

Log a message with log level "debug".

Parameters:
fmt printf format string

Definition at line 300 of file pglog.cpp.

References PG_LOG_DBG.

Referenced by PG_SurfaceCache::AddSurface(), PG_Widget::eventBlit(), PG_Application::InitScreen(), PG_Application::LoadTheme(), PG_Widget::Update(), and XMLStartDoc().

void PG_LogERR const char *  fmt,
  ...
 

Log a message with log level "error".

Parameters:
fmt printf format string

Definition at line 286 of file pglog.cpp.

References PG_LOG_ERR.

Referenced by PG_Application::InitScreen(), PG_Theme::Load(), PG_FileArchive::LoadSurface(), PG_Font::PG_Font(), PG_main(), PG_Font::SetName(), PG_Font::SetSize(), and XMLStartDoc().

void PG_LogMSG const char *  fmt,
  ...
 

Log a message with log level "message".

Parameters:
fmt printf format log string

Definition at line 279 of file pglog.cpp.

References PG_LOG_MSG.

Referenced by PG_Theme::Load(), PG_Application::LoadTheme(), and PG_Info::PrintInfo().

void PG_LogWRN const char *  fmt,
  ...
 

Log a message with log level "warning".

Parameters:
fmt printf format string

Definition at line 293 of file pglog.cpp.

References PG_LOG_WRN.

Referenced by PG_RectList::Add(), PG_FontEngine::BlitFTBitmap(), PG_FontEngine::FontEngineError(), PG_Theme::Load(), PG_FileArchive::LoadSurface(), PG_Application::LoadTheme(), PG_Application::PG_Application(), PG_Draw::CreateRGBSurface(), PG_Layout::Load(), PG_Widget::PG_Widget(), PG_FileArchive::RemoveAllArchives(), PG_Application::SetBackground(), PG_Application::SetIcon(), XMLStartDoc(), and PG_Widget::~PG_Widget().


Variable Documentation

std::string my_title = "ParaGUI Log Console" [static]
 

Definition at line 68 of file pglog.cpp.

SDLKey PG_LogConsoleKey = SDLK_F12 [static]
 

Definition at line 44 of file pglog.cpp.

PG_LOG_LEVEL PG_LogLevel = PG_LOG_DBG [static]
 

Definition at line 43 of file pglog.cpp.

Uint32 PG_LogMaxMessages = 200
 

Definition at line 41 of file pglog.cpp.

std::list<PG_LogMessage_t*> PG_LogMessages [static]
 

Definition at line 65 of file pglog.cpp.

int PG_LogMethod = PG_LOGMTH_STDOUT
 

Definition at line 42 of file pglog.cpp.

PG_Window* PG_LogWindow = NULL [static]
 

Definition at line 66 of file pglog.cpp.

PG_MultiLineEdit* PG_LogWindowData = NULL [static]
 

Definition at line 67 of file pglog.cpp.


Generated on Tue Jun 24 01:59:51 2008 for Advanced Strategic Command by  doxygen 1.4.2