|
GraviDy
1.0
Gravitational Dynamics N-body integrator
|
Class in charge of all the logging system in the code. More...
#include <Logger.hpp>

Public Member Functions | |
| Logger (NbodySystem *ns) | |
| ~Logger () | |
| std::string | get_timestamp () |
| void | print_info () |
| void | add_info (std::string key, std::string value) |
| void | write_info () |
| void | write_snapshot (unsigned int snapshot_number, double ITIME) |
| void | print_all (double ITIME, unsigned int snapshot_number) |
| void | print_energy_log (double ITIME, unsigned int iterations, long long interactions, unsigned int nsteps, double new_energy) |
| void | print_lagrange_radii (double ITIME, std::vector< double > lagrange_radii) |
| void | log (int type, std::string msg) |
| void | log_error (std::string msg) |
| void | log_warning (std::string msg) |
| void | log_success (std::string msg) |
| void | log_info (std::string msg) |
Public Attributes | |
| NbodySystem * | ns |
| bool | print_screen |
| std::ofstream | out_file |
| std::ofstream | info_file |
| std::ostream * | gstream |
| std::string | ofname |
| std::string | ofname_info |
Class in charge of all the logging system in the code.
This class includes the methods to be able to report something on-screen and also writing the infor and snapshot files.
| Logger::Logger | ( | NbodySystem * | ns | ) |
| Logger::~Logger | ( | ) |
| void Logger::add_info | ( | std::string | key, |
| std::string | value | ||
| ) |
| std::string Logger::get_timestamp | ( | ) |
| void Logger::log | ( | int | type, |
| std::string | msg | ||
| ) |
| void Logger::log_error | ( | std::string | msg | ) |
| void Logger::log_info | ( | std::string | msg | ) |
| void Logger::log_success | ( | std::string | msg | ) |
| void Logger::log_warning | ( | std::string | msg | ) |
| void Logger::print_all | ( | double | ITIME, |
| unsigned int | snapshot_number | ||
| ) |
| void Logger::print_energy_log | ( | double | ITIME, |
| unsigned int | iterations, | ||
| long long | interactions, | ||
| unsigned int | nsteps, | ||
| double | new_energy | ||
| ) |
| void Logger::print_info | ( | ) |
| void Logger::print_lagrange_radii | ( | double | ITIME, |
| std::vector< double > | lagrange_radii | ||
| ) |
| void Logger::write_info | ( | ) |
| void Logger::write_snapshot | ( | unsigned int | snapshot_number, |
| double | ITIME | ||
| ) |
| std::ostream* Logger::gstream |
| std::ofstream Logger::info_file |
| NbodySystem* Logger::ns |
| std::string Logger::ofname |
| std::string Logger::ofname_info |
| std::ofstream Logger::out_file |
| bool Logger::print_screen |
1.8.12