#include <genesis/utils/core/resource_logger.hpp>
Definition at line 61 of file resource_logger.hpp.
|
using | OutputSink = std::function< void(const std::string &)> |
|
◆ ResourceLogger() [1/4]
◆ ResourceLogger() [2/4]
ResourceLogger |
( |
std::chrono::duration< int > |
interval, |
|
|
std::string const & |
log_file |
|
) |
| |
|
inline |
◆ ~ResourceLogger()
◆ ResourceLogger() [3/4]
◆ ResourceLogger() [4/4]
◆ log_to_file()
void log_to_file |
( |
std::string const & |
log_file, |
|
|
bool |
write_header = true |
|
) |
| |
|
inline |
◆ log_to_sink()
void log_to_sink |
( |
OutputSink |
sink, |
|
|
bool |
write_header = true |
|
) |
| |
|
inline |
◆ log_to_stderr()
void log_to_stderr |
( |
bool |
write_header = false | ) |
|
|
inline |
◆ log_to_stdout()
void log_to_stdout |
( |
bool |
write_header = false | ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_interval()
void set_interval |
( |
std::chrono::duration< int > |
new_interval | ) |
|
|
inline |
◆ start()
◆ stop()
◆ OutputSink
using OutputSink = std::function<void(const std::string&)> |
The documentation for this class was generated from the following file: