public plog_channel <T> fatal; //plog_channel<T, plog_level::FATAL> fatal; public plog_base(bool debug_enabled, T proxy) { debug = new plog_channel <T>(proxy, plog_level.DEBUG, debug_enabled); info = new plog_channel <T>(proxy, plog_level.INFO); verbose = new plog_channel <T>(proxy, plog_level.VERBOSE); warning = new plog_channel <T>(proxy, plog_level.WARNING); error = new plog_channel <T>(proxy, plog_level.ERROR); fatal = new plog_channel <T>(proxy, plog_level.FATAL); }
public plog_base(plog_delegate logger) { debug = new plog_channel <plog_level_constant_DEBUG, bool_debug_enabled>(logger); info = new plog_channel <plog_level_constant_INFO>(logger); verbose = new plog_channel <plog_level_constant_VERBOSE>(logger); warning = new plog_channel <plog_level_constant_WARNING>(logger); error = new plog_channel <plog_level_constant_ERROR>(logger); fatal = new plog_channel <plog_level_constant_FATAL>(logger); }