17 #include "../declspec.h"
79 typedef std::function<bool(
int,
const std::string&)> LoggerFn;
80 static int getVerboseFromEnv(
const char *envname);
81 static bool logger(
const LoggerFn& logger,
int priority,
const std::string& str = std::string());
82 static bool logger(
const LoggerFn& logger,
int priority,
const std::ios& ss);
83 static LoggerFn emptyCallback();
84 static LoggerFn standardCallback(
int level,
const std::string& prefix,
const std::string& suffix);
98 const LoggerFn& getCallback()
const;
99 static const LoggerFn& getForwarder();
100 void setCallback(
const LoggerFn& callback);
101 void setCallback(
int currentlevel);
106 extern OPENZGY_API
bool newlogger(
int priority,
const std::string& str);
107 extern OPENZGY_API
bool newlogger(
int priority,
const std::ios& ss);