Removed old logging system.
This commit is contained in:
@ -29,27 +29,29 @@ namespace PolyVox
|
||||
#ifndef POLYVOX_THROW_ENABLED
|
||||
void defaultThrowHandler(std::exception& e, const char* file, int line)
|
||||
{
|
||||
logFatal() << "\n"; \
|
||||
logFatal() << " PolyVox exception thrown!"; \
|
||||
logFatal() << " ========================="; \
|
||||
logFatal() << " PolyVox has tried to throw an exception but it was built without support"; \
|
||||
logFatal() << " for exceptions. In this scenario PolyVox will call a 'throw handler'"; \
|
||||
logFatal() << " and this message is being printed by the default throw handler."; \
|
||||
logFatal() << "\n"; \
|
||||
logFatal() << " If you don't want to enable exceptions then you should try to determine why"; \
|
||||
logFatal() << " this exception was thrown and make sure it doesn't happen again. If it was"; \
|
||||
logFatal() << " due to something like an invalid argument to a function then you should be"; \
|
||||
logFatal() << " able to fix it quite easily by validating parameters as appropriate. More"; \
|
||||
logFatal() << " complex exception scenarios (out of memory, etc) might be harder to fix and"; \
|
||||
logFatal() << " you should replace this default handler with something which is more"; \
|
||||
logFatal() << " meaningful to your users."; \
|
||||
logFatal() << "\n"; \
|
||||
logFatal() << " Exception details"; \
|
||||
logFatal() << " -----------------"; \
|
||||
logFatal() << " Line: " << line; \
|
||||
logFatal() << " File: " << file; \
|
||||
logFatal() << " Message: " << e.what(); \
|
||||
logFatal() << "\n"; \
|
||||
std::stringstream ss; \
|
||||
ss << "\n"; \
|
||||
ss << " PolyVox exception thrown!"; \
|
||||
ss << " ========================="; \
|
||||
ss << " PolyVox has tried to throw an exception but it was built without support"; \
|
||||
ss << " for exceptions. In this scenario PolyVox will call a 'throw handler'"; \
|
||||
ss << " and this message is being printed by the default throw handler."; \
|
||||
ss << "\n"; \
|
||||
ss << " If you don't want to enable exceptions then you should try to determine why"; \
|
||||
ss << " this exception was thrown and make sure it doesn't happen again. If it was"; \
|
||||
ss << " due to something like an invalid argument to a function then you should be"; \
|
||||
ss << " able to fix it quite easily by validating parameters as appropriate. More"; \
|
||||
ss << " complex exception scenarios (out of memory, etc) might be harder to fix and"; \
|
||||
ss << " you should replace this default handler with something which is more"; \
|
||||
ss << " meaningful to your users."; \
|
||||
ss << "\n"; \
|
||||
ss << " Exception details"; \
|
||||
ss << " -----------------"; \
|
||||
ss << " Line: " << line; \
|
||||
ss << " File: " << file; \
|
||||
ss << " Message: " << e.what(); \
|
||||
ss << "\n"; \
|
||||
PolyVox::Impl::getLoggerInstance()->logFatalMessage(ss.str()); \
|
||||
POLYVOX_HALT(); \
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user