gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-2191-ga4742ac
a Global And Modular Bsm Inference Tool
standalone_utils.cpp
Go to the documentation of this file.
1 // GAMBIT: Global and Modular BSM Inference Tool
2 // *********************************************
17 
19 #include "gambit/Logs/logger.hpp"
21 
22 namespace Gambit
23 {
24 
27  {
28  // Make a logging object
29  std::map<std::string, std::string> loggerinfo;
30 
31  // Ensure that the desired output directory exists
33 
34  // Add entries to the loggerinfo map
35  loggerinfo["Default"] = prefix+"default.log";
36  loggerinfo["Debug"] = prefix+"debug.log";
37  loggerinfo["Warning"] = prefix+"warnings.log";
38  loggerinfo["Error"] = prefix+"errors.log";
39 
40  // Initialise global LogMaster object
41  logger().initialise(loggerinfo);
42  }
43 
44 }
Header for logging classes.
Logging access header for GAMBIT.
void initialise_standalone_logs(str)
Logger setup standalone utility function.
EXPORT_SYMBOLS Logging::LogMaster & logger()
Function to retrieve a reference to the Gambit global log object.
Definition: logger.cpp:95
std::string str
Shorthand for a standard string.
Definition: Analysis.hpp:35
EXPORT_SYMBOLS const str & ensure_path_exists(const str &)
Ensure that a path exists (and then return the path, for chaining purposes)
void initialise(std::vector< std::pair< std::set< std::string >, std::string >> &)
Function to construct loggers according to blueprint.
Definition: logmaster.cpp:227
Utilities needed to use a GAMBIT module as a standalone analysis code.
TODO: see if we can use this one:
Definition: Analysis.hpp:33