Class sdm::FileLogger
Class List > sdm > FileLogger
The file logger will print logs/data in a file.
#include <logger.hpp>
Inherits the following classes: sdm::Logger
Inherited by the following classes: sdm::CSVLogger
Public Functions
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 FileLogger [1/2]
inline sdm::FileLogger::FileLogger ()
function FileLogger [2/2]
inline sdm::FileLogger::FileLogger (
const std::string & filename,
const std::string & format=""
)
function close
inline void sdm::FileLogger::close ()
The documentation for this class was generated from the following file src/sdm/utils/logging/logger.hpp