Log: C++ exception support
This commit is contained in:
10
src/Log.hxx
10
src/Log.hxx
@@ -23,6 +23,10 @@
|
||||
#include "LogLevel.hxx"
|
||||
#include "Compiler.h"
|
||||
|
||||
namespace std {
|
||||
class exception;
|
||||
}
|
||||
|
||||
class Error;
|
||||
class Domain;
|
||||
|
||||
@@ -79,6 +83,12 @@ LogError(const Domain &domain, const char *msg)
|
||||
Log(domain, LogLevel::ERROR, msg);
|
||||
}
|
||||
|
||||
void
|
||||
LogError(const std::exception &e);
|
||||
|
||||
void
|
||||
LogError(const std::exception &e, const char *msg);
|
||||
|
||||
gcc_printf(2,3)
|
||||
void
|
||||
FormatError(const Domain &domain, const char *fmt, ...);
|
||||
|
Reference in New Issue
Block a user