Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions | Variables
Logging.cpp File Reference
#include <stddef.h>
#include <algorithm>
#include <fstream>
#include <memory>
#include <stdexcept>
#include <string>
#include <vector>
#include <spdlog/sinks/msvc_sink.h>
#include "inexor/io/Logging.hpp"

Classes

class  inexor::util::InexorConsoleSink
 Ingame GUI console. More...
 
class  inexor::util::InexorCutAnsiCodesSink
 Sink wrapper for removing any color codes from the log. More...
 

Namespaces

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

Functions

void conline (int type, const char *sf)
 Function which displayes console text ingame. (legacy UI) More...
 
bool inexor::util::is_file_writeable (const std::string &filename)
 
bool inexor::util::find_logfile_name (std::string &logfile_without_extension)
 Modifies the given logname until its a writeable file. More...
 
std::vector< spdlog::sink_ptr > inexor::util::create_startup_sinks ()
 Some sinks are not dependend on settings and hence they get used even before the Tree is initialized. More...
 
std::vector< spdlog::sink_ptr > inexor::util::get_all_sinks ()
 Returns a vector with startup_sinks + logfile_sink (if logfile_sink != nullptr). More...
 

Variables

std::vector< spdlog::sink_ptr > inexor::util::startup_sinks
 
spdlog::sink_ptr inexor::util::logfile_sink
 The logfile gets added thereafter. More...
 
inexor::util::log_manager Log
 

Function Documentation

void conline ( int  type,
const char *  sf 
)

Function which displayes console text ingame. (legacy UI)

References conlines, CONSTRLEN, copystring(), cline::line, newstring(), cline::outtime, totalmillis, and cline::type.

Referenced by inexor::util::InexorConsoleSink::log().

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().