The existing logging code is rather large and overwhelming. I'm starting to replace it with a simpler system that should also be easier to maintain.

This commit is contained in:
Daviw Williams
2014-01-29 16:53:11 +01:00
parent 2ae5667986
commit 84921f4d0b
2 changed files with 62 additions and 4 deletions

View File

@ -25,6 +25,22 @@ freely, subject to the following restrictions:
namespace PolyVox
{
namespace Impl
{
// Perhaps read this note when we want to move everything
// to the header file: http://stackoverflow.com/a/7834555
Logger*& getLoggerInstance()
{
static Logger* s_pLogger = 0;
return s_pLogger;
}
}
void setLogger(Logger* pLogger)
{
Impl::getLoggerInstance() = pLogger;
}
/**
* \return A pointer to the null stream.
*/