From b90653f3e3b8976490865cba4effa6219336e6e6 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Fri, 28 Jul 2017 18:08:31 -0700 Subject: [PATCH] Logger: Add def_func and min_level constructors. (#2) --- src/main/native/include/support/Logger.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/native/include/support/Logger.h b/src/main/native/include/support/Logger.h index c19ab9d873..f4c412253d 100644 --- a/src/main/native/include/support/Logger.h +++ b/src/main/native/include/support/Logger.h @@ -32,6 +32,11 @@ class Logger { typedef std::function LogFunc; + Logger() = default; + explicit Logger(const LogFunc& func) : m_func(func) {} + Logger(const LogFunc& func, unsigned int min_level) + : m_func(func), m_min_level(min_level) {} + void SetLogger(LogFunc func) { m_func = func; } void set_min_level(unsigned int level) { m_min_level = level; }