Text log file.
More...
#include <Logfile.hpp>
|
| Logfile (const std::string &fname) |
| Protected constructor. Use static get() instead of calling this method. More...
|
|
Text log file.
For example:
log_file.
ts() <<
"starting service" << std::endl;
◆ ~Logfile()
nocl::Logfile::~Logfile |
( |
void |
| ) |
|
|
virtual |
◆ Logfile() [1/4]
nocl::Logfile::Logfile |
( |
void |
| ) |
|
|
delete |
Deleted empty constructor. Use static get() instead.
◆ Logfile() [2/4]
nocl::Logfile::Logfile |
( |
const Logfile & |
rhs | ) |
|
|
delete |
Deleted copy constructor. Use static get() instead.
◆ Logfile() [3/4]
nocl::Logfile::Logfile |
( |
const int |
magic, |
|
|
const std::string & |
fname |
|
) |
| |
Do not use this constructor! It is a workaround until I figure out how to correctly insert a Logfile
object into a std::map
using get std::map::emplace()
.
Instead of calling this, use the static method get().
References NOCL_WHERE.
◆ Logfile() [4/4]
nocl::Logfile::Logfile |
( |
const std::string & |
fname | ) |
|
|
protected |
Protected constructor. Use static get() instead of calling this method.
References filename, and ts().
◆ operator=()
Deleted assignment operator. Use static get() instead.
◆ get() [1/2]
◆ get() [2/2]
◆ ts()
◆ close()
◆ log_nocl_exceptions()
void nocl::Logfile::log_nocl_exceptions |
( |
const Logfile & |
logfile | ) |
|
|
static |
◆ filename
std::string nocl::Logfile::filename |
The documentation for this class was generated from the following files: