logmaster.hpp
Go to the documentation of this file.
68 // This is the function that yaml_parser.hpp uses. You provide tags as a set of strings, and the filename as a string. We then construct the logger objects in here. 69 // This needs to be a vector of pairs rather than a map in case people want duplicate output streams of certain logs. In this case there will be duplicate keys, which a map cannot allow. std::deque< Message > * backlog Messages sent before logger objects are created will be buffered Same for messages sent while inside ... Definition: logmaster.hpp:183 void init_memory() Initialise dynamic memory required for thread safety. Definition: logmaster.cpp:93 bool loggers_readyQ Flag to set whether loggers have been initialised not. Definition: logmaster.hpp:153 void send(const std::string &) Main logging function (user-friendly overloaded version) Definition: logmaster.cpp:407 std::map< std::set< int >, BaseLogger * > loggers Map to identify loggers. Definition: logmaster.hpp:147 void entering_module(int) Set the internal variables tracking which module and/or backend is currently running. Definition: logmaster.cpp:620 Logging access header for GAMBIT. void emit_backlog(bool verbose) Print the backlogs to the default log file. Definition: logmaster.cpp:137 ~LogMaster() Destructor If errors happen before the inifile is loaded, we need to dump the log messages (that have... Definition: logmaster.cpp:171 Headeer for logging classes. void empty_backlog() Empty the backlog buffer to the 'send' function. Definition: logmaster.cpp:382 void set_log_debug_messages(bool flag) Choose whether "Debug" tagged log messages will be ignored (i.e. not logged) Definition: logmaster.hpp:138 std::ostringstream * stream Buffer variables needed for stream logging. Definition: logmaster.hpp:178 Logging "controller" object Keeps track of the various "Logger" objects. Definition: logmaster.hpp:49 std::set< int > ignore Global ignore set; if these tags/integers are seen, ignore messages containing them. Definition: logmaster.hpp:150 void initialise(std::vector< std::pair< std::set< std::string >, std::string >> &) Function to construct loggers according to blueprint. Definition: logmaster.cpp:227 Special (empty) struct for signalling end of message to LogMaster stream. Definition: logger.hpp:44 bool separate_file_per_process Flag to store log messages for different processes in separate files. Definition: logmaster.hpp:159 void input(const std::string &) Functions for stream input (actual stream operators which use these are defined in logger... Definition: logmaster.cpp:671 int globlMaxThreads Max number of threads that could potentially be running. Definition: logmaster.hpp:169 void finalsend(const Message &) Version of send function used by buffer dump; skips all the tag modification stuff. Definition: logmaster.cpp:574 |