2013-09-15 23:46:02 +04:00
|
|
|
|
|
|
|
#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);
|
2013-09-15 23:46:02 +04:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|