Code Search for Developers
 
 
  

logger.cc from The Nebula Device at Krugle


Show logger.cc syntax highlighted

//------------------------------------------------------------------------------
//  ceui/logger.cc
//  (c) 2006 Nebula2 Community
//------------------------------------------------------------------------------
#include "ceui/logger.h"
#include "kernel/nkernelserver.h"

namespace CEUI
{

//------------------------------------------------------------------------------
/**
*/
Logger::Logger() {
}

//------------------------------------------------------------------------------
/**
*/
Logger::~Logger() {
}

//------------------------------------------------------------------------------
/**
*/
void Logger::logEvent(const CEGUI::String& message, CEGUI::LoggingLevel level) {
    if (level <= getLoggingLevel()) {
        switch (level) {
        case CEGUI::Errors:
            nKernelServer::Instance()->Error("%s\n", message.c_str());
            break;
        case CEGUI::Standard:
            nKernelServer::Instance()->Print("%s\n", message.c_str());
            break;
        case CEGUI::Informative:
            nKernelServer::Instance()->Print("%s\n", message.c_str());
            break;
        case CEGUI::Insane:
            nKernelServer::Instance()->Print("%s\n", message.c_str());
            break;
        default:
            n_error("Unknown CEGUI logging level\n");
        }
    }
}

//------------------------------------------------------------------------------
/**
*/
void Logger::setLogFilename(const CEGUI::String& filename, bool append) {
}

} // namespace CEUI




See more files for this project here

The Nebula Device

Realtime 3D game/visualization engine, written in C++, scriptable through Tcl/Tk, Python and Lua. Supports D3D and OpenGL for rendering, runs under Linux and Windows.

Project homepage: http://sourceforge.net/projects/nebuladevice
Programming language(s): C,C++,Python
License: other

  ceguitimesource.cc
  ceguitimesource.h
  logger.cc
  logger.h
  renderer.cc
  renderer.h
  resourceprovider.cc
  resourceprovider.h
  server.cc
  server.h
  texture.cc
  texture.h