Allow resetting the logger back to default (#55)

This commit is contained in:
Dustin Spicuzza
2017-02-17 01:12:16 -05:00
committed by Peter Johnson
parent 8f97637b71
commit c02d34dbf3
7 changed files with 18 additions and 1 deletions

View File

@@ -345,6 +345,7 @@ int CS_NotifierDestroyed(void);
typedef void (*CS_LogFunc)(unsigned int level, const char* file,
unsigned int line, const char* msg);
void CS_SetLogger(CS_LogFunc func, unsigned int min_level);
void CS_SetDefaultLogger(unsigned int min_level);
//
// Utility Functions

View File

@@ -311,6 +311,7 @@ typedef std::function<void(unsigned int level, const char* file,
unsigned int line, const char* msg)>
LogFunc;
void SetLogger(LogFunc func, unsigned int min_level);
void SetDefaultLogger(unsigned int min_level);
//
// Utility Functions