Class sdm::CSVLogger
Class List > sdm > CSVLogger
The CSV logger will print logs/data in a file with csv format. This logger can be used to save training data.
#include <logger.hpp>
Inherits the following classes: sdm::FileLogger
Public Functions
Type | Name |
---|---|
CSVLogger (const std::string & filename="out") | |
CSVLogger (const std::string & filename, const std::vector< std::string > & col_names, const std::string & separator=",") |
Public Functions inherited from sdm::FileLogger
See sdm::FileLogger
Type | Name |
---|---|
FileLogger () | |
FileLogger (const std::string & filename, const std::string & format="") | |
void | close () Close the output file stream. |
Public Functions inherited from sdm::Logger
See sdm::Logger
Type | Name |
---|---|
Logger () | |
Logger (std::ostream * os, const std::string & format="") | |
Logger (std::shared_ptr< std::ostream > os, const std::string & format="") | |
void | log (TData... vals) Record values. |
void | setFormat (const std::string & format) Set the format of logs. |
Public Functions inherited from sdm::BaseLogger
See sdm::BaseLogger
Type | Name |
---|---|
void | log (TData... vals) Record values. |
Protected Attributes inherited from sdm::Logger
See sdm::Logger
Type | Name |
---|---|
std::string | format_ the output format |
std::shared_ptr< std::ostream > | output_stream_ the output stream for logs. |
Public Functions Documentation
function CSVLogger [1/2]
inline sdm::CSVLogger::CSVLogger (
const std::string & filename="out"
)
function CSVLogger [2/2]
inline sdm::CSVLogger::CSVLogger (
const std::string & filename,
const std::vector< std::string > & col_names,
const std::string & separator=","
)
The documentation for this class was generated from the following file src/sdm/utils/logging/logger.hpp