core: use Boost.Log for logging
This makes the logging backend asynchronous
Change-Id: Ib3417e2ae424c5ae7237c071dc4698ca9769a33c
Refs: #2513
diff --git a/tests/core/logger.t.cpp b/tests/core/logger.t.cpp
index 5dafadb..51dd2d2 100644
--- a/tests/core/logger.t.cpp
+++ b/tests/core/logger.t.cpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2014-2015, Regents of the University of California,
+ * Copyright (c) 2014-2016, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne University,
@@ -92,6 +92,8 @@
microseconds::rep after =
duration_cast<microseconds>(system_clock::now().time_since_epoch()).count();
+ LoggerFactory::getInstance().flushBackend();
+
const string buffer = m_buffer.str();
std::vector<string> components;
@@ -203,6 +205,8 @@
microseconds::rep after =
duration_cast<microseconds>(system_clock::now().time_since_epoch()).count();
+ LoggerFactory::getInstance().flushBackend();
+
const string buffer = m_buffer.str();
std::vector<string> components;
@@ -328,6 +332,8 @@
microseconds::rep after =
duration_cast<microseconds>(system_clock::now().time_since_epoch()).count();
+ LoggerFactory::getInstance().flushBackend();
+
const string buffer = m_buffer.str();
std::vector<string> components;
@@ -424,6 +430,8 @@
const size_t N_EXPECTED = sizeof(EXPECTED) / sizeof(std::string);
+ LoggerFactory::getInstance().flushBackend();
+
const string buffer = m_buffer.str();
std::vector<string> components;
@@ -513,6 +521,8 @@
microseconds::rep after =
duration_cast<microseconds>(system_clock::now().time_since_epoch()).count();
+ LoggerFactory::getInstance().flushBackend();
+
const string buffer = m_buffer.str();
const size_t firstSpace = buffer.find(" ");
@@ -619,6 +629,8 @@
const size_t N_EXPECTED = sizeof(EXPECTED) / sizeof(string);
+ LoggerFactory::getInstance().flushBackend();
+
const string buffer = m_buffer.str();
std::vector<string> components;
@@ -729,6 +741,8 @@
const size_t N_EXPECTED = sizeof(EXPECTED) / sizeof(string);
+ LoggerFactory::getInstance().flushBackend();
+
const string buffer = m_buffer.str();
std::vector<string> components;
@@ -812,6 +826,8 @@
const size_t N_EXPECTED = sizeof(EXPECTED) / sizeof(string);
+ LoggerFactory::getInstance().flushBackend();
+
const string buffer = m_buffer.str();
std::vector<string> components;