cwLog.cpp : flush() output in defaultOutput().
This commit is contained in:
parent
f8971f90b1
commit
7fad3df667
@ -127,6 +127,7 @@ void cw::log::defaultOutput( void* arg, unsigned level, const char* text )
|
|||||||
{
|
{
|
||||||
FILE* f = level >= kWarning_LogLevel ? stderr : stdout;
|
FILE* f = level >= kWarning_LogLevel ? stderr : stdout;
|
||||||
fprintf(f,"%s",text);
|
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 )
|
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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user