OpenANN
1.1.0
An open source library for artificial neural networks.
|
A local logger that can redirect messages to several targets. More...
#include <Logger.h>
Public Types | |
enum | Target { NONE, CONSOLE, FILE, APPEND_FILE } |
Target of the Logger. More... | |
Public Member Functions | |
Logger (Target target, std::string name="Logger") | |
~Logger () | |
bool | isActive () |
Check if the logger redirects to an existing target. More... | |
Public Attributes | |
enum OpenANN::Logger::Target | target |
std::string | name |
std::ofstream | file |
Static Public Attributes | |
static bool | deactivate |
Deactivate all Logger objects. More... | |
A local logger that can redirect messages to several targets.
OpenANN::Logger::Logger | ( | Target | target, |
std::string | name = "Logger" |
||
) |
OpenANN::Logger::~Logger | ( | ) |
bool OpenANN::Logger::isActive | ( | ) |
Check if the logger redirects to an existing target.
|
static |
Deactivate all Logger objects.
std::ofstream OpenANN::Logger::file |
std::string OpenANN::Logger::name |
enum OpenANN::Logger::Target OpenANN::Logger::target |