diff options
Diffstat (limited to 'sesman/chansrv/chansrv.h')
-rw-r--r-- | sesman/chansrv/chansrv.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sesman/chansrv/chansrv.h b/sesman/chansrv/chansrv.h index 327f6228..4ab4f1ae 100644 --- a/sesman/chansrv/chansrv.h +++ b/sesman/chansrv/chansrv.h @@ -15,4 +15,15 @@ struct chan_item int APP_CC send_channel_data(int chan_id, char* data, int size); +#define LOG_LEVEL 10 + +#define LOG(_a, _params) \ +{ \ + if (_a < LOG_LEVEL) \ + { \ + g_write("xrdp-chansrv [%10.10d]: ", g_time3()); \ + g_writeln _params ; \ + } \ +} + #endif |