Added additional logging streams.

This commit is contained in:
Daviw Williams
2013-05-24 13:26:26 +02:00
parent 6c77e778dd
commit b12e6d045c
2 changed files with 82 additions and 6 deletions

View File

@ -68,13 +68,21 @@ freely, subject to the following restrictions:
namespace PolyVox
{
std::ostream& logTrace(void);
std::ostream& logDebug(void);
std::ostream& logInfo(void);
std::ostream& logWarning(void);
std::ostream& logError(void);
std::ostream& logFatal(void);
// These take pointers rather than references to emphasise that the
// user needs to keep the target alive as long as PolyVox is writing data.
void setErrorStream(std::ostream* errorStream);
void setFatalStream(std::ostream* fatalStream);
void setTraceStream(std::ostream* pStream);
void setDebugStream(std::ostream* pStream);
void setInfoStream(std::ostream* pStream);
void setWarningStream(std::ostream* pStream);
void setErrorStream(std::ostream* pStream);
void setFatalStream(std::ostream* pStream);
}
/*