 |
FreeRDP
|
Loading...
Searching...
No Matches
24#ifndef FREERDP_SERVER_PROXY_LOG_H
25#define FREERDP_SERVER_PROXY_LOG_H
27#include <winpr/wlog.h>
28#include <freerdp/log.h>
30#define PROXY_TAG(tag) FREERDP_TAG("proxy." tag)
40#define PROXY_LOG_INFO(_tag, _context, _format, ...) \
41 WLog_INFO(TAG, "[SessionID=%s]: " _format, \
42 (_context && _context->pdata) ? _context->pdata->session_id : "null", ##__VA_ARGS__)
43#define PROXY_LOG_ERR(_tag, _context, _format, ...) \
44 WLog_ERR(TAG, "[SessionID=%s]: " _format, \
45 (_context && _context->pdata) ? _context->pdata->session_id : "null", ##__VA_ARGS__)
46#define PROXY_LOG_DBG(_tag, _context, _format, ...) \
47 WLog_DBG(TAG, "[SessionID=%s]: " _format, \
48 (_context && _context->pdata) ? _context->pdata->session_id : "null", ##__VA_ARGS__)
49#define PROXY_LOG_WARN(_tag, _context, _format, ...) \
50 WLog_WARN(TAG, "[SessionID=%s]: " _format, \
51 (_context && _context->pdata) ? _context->pdata->session_id : "null", ##__VA_ARGS__)