cwLog.cpp : flush() output in defaultOutput().

This commit is contained in:
kevin.larke 2020-04-16 20:09:13 -04:00
parent f8971f90b1
commit 7fad3df667

View File

@ -127,6 +127,7 @@ void cw::log::defaultOutput( void* arg, unsigned level, const char* text )
{
FILE* f = level >= kWarning_LogLevel ? stderr : stdout;
fprintf(f,"%s",text);
fflush(f);
}
void cw::log::defaultFormatter( void* cbArg, logOutputCbFunc_t outFunc, void* outCbArg, unsigned level, const char* function, const char* filename, unsigned lineno, int sys_errno, rc_t rc, const char* msg )