Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros | Variables
Logging.hpp File Reference

Logging stuff including the ingame console logging functionality. More...

#include "inexor/network/SharedClass.hpp"
#include "inexor/network/SharedVar.hpp"
#include <spdlog/spdlog.h>
#include <spdlog/fmt/ostr.h>
#include <array>
#include <iomanip>
#include <map>
#include <memory>
#include <ostream>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  inexor::util::Logger
 Wrapper around spdlog::logger to put it into the InexorTree We want to set the pattern and the level on a per-logger-base and expose it. More...
 
class  inexor::util::log_manager
 The global inexor logging API TODO: enable sharing. More...
 
struct  inexor::util::embraced
 Helper class to allow the writing of std::cout << embraced("I should be inside curly brackets", "{", "}"); Same works for numbers, but it may destroy std::setprecision. More...
 
struct  inexor::util::quoted
 A simple helper class to allow you writing inexor::util::quoted(string) which automatically adds quotation marks. More...
 

Namespaces

 inexor
 Show stacktrace on unix, do not include directly.
 
 inexor::util
 

Macros

#define DEFAULT_LOG_PATTERN   "%H:%M:%S [%n] [%l] %v"
 
#define COL_GREEN   "\x1b[38;2;64;255;128m"
 
#define COL_BLUE   "\x1b[38;2;96;160;255m"
 
#define COL_YELLOW   "\x1b[38;2;255;192;64m"
 
#define COL_RED   "\x1b[38;2;255;64;64m"
 
#define COL_GREY   "\x1b[38;2;128;128;128m"
 
#define COL_MAGENTA   "\x1b[38;2;192;64;192m"
 
#define COL_ORANGE   "\x1b[38;2;255;128;0m"
 
#define COL_WHITE   "\x1b[38;2;255;255;255m"
 

Variables

inexor::util::log_manager Log
 

Detailed Description

Logging stuff including the ingame console logging functionality.

Macro Definition Documentation

#define COL_BLUE   "\x1b[38;2;96;160;255m"
#define COL_GREEN   "\x1b[38;2;64;255;128m"
#define COL_GREY   "\x1b[38;2;128;128;128m"
#define COL_MAGENTA   "\x1b[38;2;192;64;192m"
#define COL_ORANGE   "\x1b[38;2;255;128;0m"
#define COL_RED   "\x1b[38;2;255;64;64m"
#define COL_WHITE   "\x1b[38;2;255;255;255m"
#define COL_YELLOW   "\x1b[38;2;255;192;64m"
#define DEFAULT_LOG_PATTERN   "%H:%M:%S [%n] [%l] %v"

Variable Documentation

Referenced by addblendbrush(), addcomplete(), decalrenderer::adddecal(), addpostfx(), game::allowedittoggle(), bindkey(), calclight(), canpaintblendmap(), server::bombservermode::canspawn(), cef_resize(), inexor::rpc::RpcServer< MSG_TYPE, ASYNC_SERVICE_TYPE >::change_variable(), entities::checkquad(), clearmodel(), game::clientdisconnected(), aviwriter::close(), connectserv(), cubemapload(), cubemaploadwildcard(), debugalias(), debugcode(), debugcodeline(), delprefab(), game::collectclientmode::deposittokens(), disconnect(), server::disconnect_client(), game::ctfclientmode::dropflag(), editmat(), emptymap(), enlargemap(), entinmap(), execfile(), fatal(), particleemitter::finalize(), findtype(), inexor::rpc::RpcServer< MSG_TYPE, ASYNC_SERVICE_TYPE >::clienthandler::finished_disconnect(), gzstream::finishreading(), flushpreloadedmodels(), game::follow(), gendds(), genpvs(), genvbo(), inexor::ui::context::InexorContextProvider::GetContext(), game::getdemo(), game::getmap(), gets2c(), inexor::ui::InexorRenderHandler::GetViewRect(), gl_checkextensions(), gl_rendercef(), inexor::rpc::RpcServer< MSG_TYPE, ASYNC_SERVICE_TYPE >::handle_new_connection(), inexor::ui::layer::InexorLayerManager::HideLayer(), game::ignore(), inexor::ui::InexorCefApp::InexorCefApp(), inexor::ui::layer::InexorLayer::InexorLayer(), inexor::ui::InexorSettings::InexorSettings(), ai::init(), inexor::ui::InexorCefApp::InitAppLayer(), inexor::ui::InexorCefApp::InitConsoleLayer(), inexor::ui::InexorCefApp::InitHudLayer(), inexor::ui::CefSubsystem::initialize(), inexor::ui::InexorRenderHandler::Initialize(), inexor::rpc::RpcSubsystem< MSG_TYPE, ASYNC_SERVICE_TYPE >::initialize(), inexor::ui::layer::InexorLayerManager::InitializeLayer(), inexor::sound::initmumble(), keymap(), game::killed(), game::listdemos(), inexor::sound::soundsample::load(), md3::md3meshgroup::load(), md2::load(), load_world(), loaddds(), md3::loaddefaultparts(), obj::loaddefaultparts(), loadents(), iqm::iqmmeshgroup::loadiqmmeshes(), md5::md5meshgroup::loadmesh(), vertcommands< MDL >::loadpart(), skelcommands< MDL >::loadpart(), loadprefab(), loadsky(), loadskyoverlay(), ai::loadwaypoints(), lockpvs_(), main(), multiplayer(), neterr(), newentity(), game::nextfollow(), noedit(), noentedit(), inexor::ui::layer::InexorLayer::OnAddressChange(), inexor::ui::layer::InexorLayer::OnConsoleMessage(), inexor::ui::InexorCefApp::OnContextCreated(), inexor::ui::input::InexorKeyboardManager::OnKeyEvent(), inexor::ui::layer::InexorLayer::OnKeyEvent(), inexor::ui::layer::InexorLayer::OnLoadError(), inexor::ui::InexorRenderHandler::OnPaint(), inexor::ui::input::InexorKeyboardManager::OnPreKeyEvent(), inexor::ui::layer::InexorLayer::OnPreKeyEvent(), inexor::ui::layer::InexorLayer::OnStatusMessage(), game::parsemessages(), server::parsepacket(), patchlight(), game::pausegame(), game::persistteams(), entities::pickupeffects(), inexor::sound::playsound(), preloadusedmapmodels(), printcube(), printfvar(), game::printname(), printsvar(), game::printteam(), printvar(), game::printvar(), server::promote_if_local_client(), pvsstats(), game::receivefile(), reconnect(), reloadtex(), replace(), reportinvalidtextslot(), game::ctfclientmode::resetflag(), inexor::ui::layer::InexorHudLayer::Resize(), inexor::ui::layer::InexorConsoleLayer::Resize(), inexor::ui::layer::InexorAppLayer::Resize(), game::ctfclientmode::returnflag(), server::run_server(), save_world(), savepng(), saveprefab(), savetga(), ai::savewaypoints(), game::sayprivate(), game::sayteam(), game::ctfclientmode::scoreflag(), game::sendmap(), server::serverslice(), skelcommands< MDL >::setadjust(), vertcommands< MDL >::setanim(), animmodel::part::setanim(), skelcommands< MDL >::setanim(), skelcommands< MDL >::setanimpart(), modelcommands< MDL, struct MDL::vertmesh >::setdir(), inexor::ui::layer::InexorLayer::SetIsAcceptingKeyInput(), inexor::ui::layer::InexorLayer::SetIsAcceptingMouseInput(), modelcommands< MDL, struct MDL::vertmesh >::setlink(), vertcommands< MDL >::setpitch(), skelcommands< MDL >::setpitch(), skelcommands< MDL >::setpitchcorrect(), skelcommands< MDL >::setpitchtarget(), game::captureclientmode::setscore(), setshader(), skelcommands< MDL >::settag(), server::setup_network_sockets(), inexor::rendering::screen::ScreenManager::setupscreen(), inexor::ui::InexorRenderHandler::SetViewRect(), inexor::ui::layer::InexorLayer::SetVisibility(), showglslinfo(), inexor::ui::layer::InexorLayerManager::ShowLayer(), showtexgui(), shrinkmap(), inexor::rpc::TestRpcClient< DATA_TYPE, SERVICE_TYPE >::Start(), recorder::start(), game::startgame(), game::collectclientmode::stealtoken(), recorder::stop(), game::stopfollowing(), inexor::sound::stopsound(), swapundo(), game::ctfclientmode::takeflag(), entities::teleport(), testpvs(), texture(), texturedata(), game::timeupdate(), game::toserver(), trydisconnect(), entities::trypickup(), game::unignore(), game::captureclientmode::updatebase(), updateparticles(), and inexor::rpc::RpcSubsystem< MSG_TYPE, ASYNC_SERVICE_TYPE >::~RpcSubsystem().