static lib wip

This commit is contained in:
gabime
2019-04-05 23:05:46 +03:00
parent 156b856a80
commit 17f9cdd401
14 changed files with 1455 additions and 1464 deletions

View File

@@ -103,9 +103,9 @@ inline void flush_every(std::chrono::seconds interval)
}
// Set global error handler
inline void set_error_handler(log_err_handler handler)
inline void set_error_handler(void (*handler)(const std::string &msg))
{
details::registry::instance().set_error_handler(std::move(handler));
details::registry::instance().set_error_handler(handler);
}
// Register the given logger with the given name