FreeRDP/winpr/libwinpr/utils/test/TestWLog.c

22 lines
433 B
C
Raw Normal View History

#include <winpr/crt.h>
#include <winpr/tchar.h>
#include <winpr/wlog.h>
int TestWLog(int argc, char* argv[])
{
2013-09-16 00:48:09 +04:00
wLog* log;
log = WLog_New("TEST");
WLog_SetLogLevel(log, WLOG_INFO);
WLog_Print(log, WLOG_INFO, "this is a test");
WLog_Print(log, WLOG_WARN, "this is a %dnd %s", 2, "test");
WLog_Print(log, WLOG_ERROR, "this is an error");
WLog_Print(log, WLOG_TRACE, "this is a trace output");
WLog_Free(log);
return 0;
}