#include <stdexcept>#include <tuple>#include <yaml-cpp/yaml.h>#include <einhard.hpp>#include "macros.h"Go to the source code of this file.
Namespaces | |
| smash | |
| smash::LogArea | |
| The namespace where log areas are declared. | |
| YAML | |
Macros | |
| #define | DECLARE_LOGAREA(id__, name__) |
| Declares the necessary interface to identify a new log area. More... | |
| #define | source_location __FILE__ ":" + std::to_string(__LINE__) + " (" + __func__ + ')' |
| Hackery that is required to output the location in the source code where the log statement occurs. More... | |
Typedefs | |
| using | smash::LogArea::AreaTuple = std::tuple< Main, Experiment, Box, Collider, Sphere, Action, InputParser, ParticleType, FindScatter, Clock, DecayModes, Resonances, ScatterAction, Distributions, Propagation, Grid, List, Nucleus, Density, PauliBlocking, Tmn, Fpe, Lattice, Sampling, Pythia, GrandcanThermalizer, CrossSections, Output > |
| This type collects all existing log areas so they will be created with the correct log level automatically. More... | |
Functions | |
| void | smash::create_all_loggers (Configuration config) |
| Called from main() right after the Configuration object is fully set up to create all logger objects (as defined by LogArea::AreaTuple) with the correct area names and log levels. More... | |
| einhard::Logger & | smash::retrieve_logger_impl (int id) |
| template<typename LogAreaTag > | |
| einhard::Logger & | smash::logger () |
| einhard::LogLevel | smash::default_loglevel () |
| void | smash::set_default_loglevel (einhard::LogLevel level) |
| Set the default log level (what will be returned from subsequent default_loglevel calls). More... | |
| template<typename T > | |
| FormattingHelper< T > | smash::format (const T &value, const char *unit, int width=-1, int precision=-1) |
| Acts as a stream modifier for std::ostream to output an object with an optional suffix string and with a given field width and precision. More... | |