Fixed logging on Windows. Event log sink is still broken.

This commit is contained in:
Pedro Pinto committed 2017-08-23 12:58:07 +00:00
1 parent 3060386a23
commit ac3d1869cf
14 files changed
+73 -20

No files matched your search

+9 -2
View File
@@ -7,11 +7,13 @@ namespace config {
namespace internal {
struct ConfigLog::PImpl {
PImpl() :
PImpl()
:
print_errors(true),
logger_hub("config_logger"),
logger(logger_hub.make_logger())
{}
{
}
bool print_errors;
log::LoggerHub logger_hub;
@@ -42,6 +44,11 @@ ConfigLog::ConfigLog() :
me->logger_hub.config(cfg);
}
void ConfigLog::start()
{
me->logger_hub.start();
}
ConfigLog::~ConfigLog()
{
me->logger.mark_inactive();