40 #define LLL_ERR (1 << 0)
41 #define LLL_WARN (1 << 1)
42 #define LLL_NOTICE (1 << 2)
43 #define LLL_INFO (1 << 3)
44 #define LLL_DEBUG (1 << 4)
45 #define LLL_PARSER (1 << 5)
46 #define LLL_HEADER (1 << 6)
47 #define LLL_EXT (1 << 7)
48 #define LLL_CLIENT (1 << 8)
49 #define LLL_LATENCY (1 << 9)
50 #define LLL_USER (1 << 10)
51 #define LLL_THREAD (1 << 11)
53 #define LLL_COUNT (12)
55 #define LLLF_SECRECY_PII (1 << 16)
57 #define LLLF_SECRECY_BEARER (1 << 17)
60 #define LLLF_LOG_TIMESTAMP (1 << 18)
63 #define LLLF_LOG_CONTEXT_AWARE (1 << 30)
71 const char *line,
size_t len);
87 pthread_mutex_t refcount_lock;
124 #if defined(LWS_PLAT_OPTEE) && !defined(LWS_WITH_NETWORK)
125 #define _lws_log(aaa, ...) SMSG(__VA_ARGS__)
142 #if defined(LWS_WITH_SECURE_STREAMS)
143 struct lws_ss_handle;
145 lwsl_ss_get_cx(
struct lws_ss_handle *ss);
147 #if defined(LWS_WITH_SECURE_STREAMS_PROXY_API)
148 struct lws_sspc_handle;
167 #if defined(LWS_WITH_SECURE_STREAMS)
169 lws_log_prepend_ss(
struct lws_log_cx *cx,
void *obj,
char **p,
char *e);
171 #if defined(LWS_WITH_SECURE_STREAMS_PROXY_API)
178 int filter,
const char *_fun,
const char *format, ...)
LWS_FORMAT(6);
180 #define lwsl_cx(_c, _fil, ...) \
181 _lws_log_cx(lwsl_context_get_cx(_c), lws_log_prepend_context, \
182 _c, _fil, __func__, __VA_ARGS__)
183 #define lwsl_vhost(_v, _fil, ...) \
184 _lws_log_cx(lwsl_vhost_get_cx(_v), lws_log_prepend_vhost, _v, \
185 _fil, __func__, __VA_ARGS__)
186 #define lwsl_wsi(_w, _fil, ...) \
187 _lws_log_cx(lwsl_wsi_get_cx(_w), lws_log_prepend_wsi, _w, \
188 _fil, __func__, __VA_ARGS__)
189 #define lwsl_ss(_h, _fil, ...) \
190 _lws_log_cx(lwsl_ss_get_cx(_h), lws_log_prepend_ss, _h, \
191 _fil, __func__, __VA_ARGS__)
193 #define lwsl_hexdump_context(_c, _fil, _buf, _len) \
194 lwsl_hexdump_level_cx(lwsl_context_get_cx(_c), \
195 lws_log_prepend_context, \
196 _c, _fil, _buf, _len)
197 #define lwsl_hexdump_vhost(_v, _fil, _buf, _len) \
198 lwsl_hexdump_level_cx(lwsl_vhost_get_cx(_v), \
199 lws_log_prepend_vhost, \
200 _v, _fil, _buf, _len)
201 #define lwsl_hexdump_wsi(_w, _fil, _buf, _len) \
202 lwsl_hexdump_level_cx(lwsl_wsi_get_cx(_w), \
203 lws_log_prepend_wsi, \
204 _w, _fil, _buf, _len)
205 #define lwsl_hexdump_ss(_h, _fil, _buf, _len) \
206 lwsl_hexdump_level_cx(lwsl_ss_get_cx(_h), \
207 lws_log_prepend_ss, \
208 _h, _fil, _buf, _len)
218 #if defined(LWS_WITH_NO_LOGS)
219 #define _LWS_LINIT (LLL_ERR | LLL_USER)
221 #define _LWS_LINIT ((1 << LLL_COUNT) - 1)
224 #if defined(LWS_WITH_NO_LOGS)
225 #define _LWS_LINIT (LLL_ERR | LLL_USER)
227 #define _LWS_LINIT (LLL_ERR | LLL_USER | LLL_WARN | LLL_NOTICE)
240 #if defined(LWS_LOGGING_BITFIELD_SET)
241 #define _LWS_LBS (LWS_LOGGING_BITFIELD_SET)
246 #if defined(LWS_LOGGING_BITFIELD_CLEAR)
247 #define _LWS_LBC (LWS_LOGGING_BITFIELD_CLEAR)
255 #define _LWS_ENABLED_LOGS (((_LWS_LINIT) | (_LWS_LBS)) & ~(_LWS_LBC))
266 #if (_LWS_ENABLED_LOGS & LLL_ERR)
267 #define lwsl_err(...) _lws_log(LLL_ERR, __VA_ARGS__)
269 #define lwsl_err(...) do {} while(0)
272 #if (_LWS_ENABLED_LOGS & LLL_WARN)
273 #define lwsl_warn(...) _lws_log(LLL_WARN, __VA_ARGS__)
275 #define lwsl_warn(...) do {} while(0)
278 #if (_LWS_ENABLED_LOGS & LLL_NOTICE)
279 #define lwsl_notice(...) _lws_log(LLL_NOTICE, __VA_ARGS__)
281 #define lwsl_notice(...) do {} while(0)
284 #if (_LWS_ENABLED_LOGS & LLL_INFO)
285 #define lwsl_info(...) _lws_log(LLL_INFO, __VA_ARGS__)
287 #define lwsl_info(...) do {} while(0)
290 #if (_LWS_ENABLED_LOGS & LLL_DEBUG)
291 #define lwsl_debug(...) _lws_log(LLL_DEBUG, __VA_ARGS__)
293 #define lwsl_debug(...) do {} while(0)
296 #if (_LWS_ENABLED_LOGS & LLL_PARSER)
297 #define lwsl_parser(...) _lws_log(LLL_PARSER, __VA_ARGS__)
299 #define lwsl_parser(...) do {} while(0)
302 #if (_LWS_ENABLED_LOGS & LLL_HEADER)
303 #define lwsl_header(...) _lws_log(LLL_HEADER, __VA_ARGS__)
305 #define lwsl_header(...) do {} while(0)
308 #if (_LWS_ENABLED_LOGS & LLL_EXT)
309 #define lwsl_ext(...) _lws_log(LLL_EXT, __VA_ARGS__)
311 #define lwsl_ext(...) do {} while(0)
314 #if (_LWS_ENABLED_LOGS & LLL_CLIENT)
315 #define lwsl_client(...) _lws_log(LLL_CLIENT, __VA_ARGS__)
317 #define lwsl_client(...) do {} while(0)
320 #if (_LWS_ENABLED_LOGS & LLL_LATENCY)
321 #define lwsl_latency(...) _lws_log(LLL_LATENCY, __VA_ARGS__)
323 #define lwsl_latency(...) do {} while(0)
326 #if (_LWS_ENABLED_LOGS & LLL_THREAD)
327 #define lwsl_thread(...) _lws_log(LLL_THREAD, __VA_ARGS__)
329 #define lwsl_thread(...) do {} while(0)
332 #if (_LWS_ENABLED_LOGS & LLL_USER)
333 #define lwsl_user(...) _lws_log(LLL_USER, __VA_ARGS__)
335 #define lwsl_user(...) do {} while(0)
338 #define lwsl_hexdump_err(...) lwsl_hexdump_level(LLL_ERR, __VA_ARGS__)
339 #define lwsl_hexdump_warn(...) lwsl_hexdump_level(LLL_WARN, __VA_ARGS__)
340 #define lwsl_hexdump_notice(...) lwsl_hexdump_level(LLL_NOTICE, __VA_ARGS__)
341 #define lwsl_hexdump_info(...) lwsl_hexdump_level(LLL_INFO, __VA_ARGS__)
342 #define lwsl_hexdump_debug(...) lwsl_hexdump_level(LLL_DEBUG, __VA_ARGS__)
348 #if (_LWS_ENABLED_LOGS & LLL_ERR)
349 #define lwsl_cx_err(_c, ...) lwsl_cx(_c, LLL_ERR, __VA_ARGS__)
351 #define lwsl_cx_err(_c, ...) do {} while(0)
354 #if (_LWS_ENABLED_LOGS & LLL_WARN)
355 #define lwsl_cx_warn(_c, ...) lwsl_cx(_c, LLL_WARN, __VA_ARGS__)
357 #define lwsl_cx_warn(_c, ...) do {} while(0)
360 #if (_LWS_ENABLED_LOGS & LLL_NOTICE)
361 #define lwsl_cx_notice(_c, ...) lwsl_cx(_c, LLL_NOTICE, __VA_ARGS__)
363 #define lwsl_cx_notice(_c, ...) do {} while(0)
366 #if (_LWS_ENABLED_LOGS & LLL_INFO)
367 #define lwsl_cx_info(_c, ...) lwsl_cx(_c, LLL_INFO, __VA_ARGS__)
369 #define lwsl_cx_info(_c, ...) do {} while(0)
372 #if (_LWS_ENABLED_LOGS & LLL_DEBUG)
373 #define lwsl_cx_debug(_c, ...) lwsl_cx(_c, LLL_DEBUG, __VA_ARGS__)
375 #define lwsl_cx_debug(_c, ...) do {} while(0)
378 #if (_LWS_ENABLED_LOGS & LLL_PARSER)
379 #define lwsl_cx_parser(_c, ...) lwsl_cx(_c, LLL_PARSER, __VA_ARGS__)
381 #define lwsl_cx_parser(_c, ...) do {} while(0)
384 #if (_LWS_ENABLED_LOGS & LLL_HEADER)
385 #define lwsl_cx_header(_c, ...) lwsl_cx(_c, LLL_HEADER, __VA_ARGS__)
387 #define lwsl_cx_header(_c, ...) do {} while(0)
390 #if (_LWS_ENABLED_LOGS & LLL_EXT)
391 #define lwsl_cx_ext(_c, ...) lwsl_cx(_c, LLL_EXT, __VA_ARGS__)
393 #define lwsl_cx_ext(_c, ...) do {} while(0)
396 #if (_LWS_ENABLED_LOGS & LLL_CLIENT)
397 #define lwsl_cx_client(_c, ...) lwsl_cx(_c, LLL_CLIENT, __VA_ARGS__)
399 #define lwsl_cx_client(_c, ...) do {} while(0)
402 #if (_LWS_ENABLED_LOGS & LLL_LATENCY)
403 #define lwsl_cx_latency(_c, ...) lwsl_cx(_c, LLL_LATENCY, __VA_ARGS__)
405 #define lwsl_cx_latency(_c, ...) do {} while(0)
408 #if (_LWS_ENABLED_LOGS & LLL_THREAD)
409 #define lwsl_cx_thread(_c, ...) lwsl_cx(_c, LLL_THREAD, __VA_ARGS__)
411 #define lwsl_cx_thread(_c, ...) do {} while(0)
414 #if (_LWS_ENABLED_LOGS & LLL_USER)
415 #define lwsl_cx_user(_c, ...) lwsl_cx(_c, LLL_USER, __VA_ARGS__)
417 #define lwsl_cx_user(_c, ...) do {} while(0)
420 #define lwsl_hexdump_cx_err(_c, ...) lwsl_hexdump_context(_c, LLL_ERR, __VA_ARGS__)
421 #define lwsl_hexdump_cx_warn(_c, ...) lwsl_hexdump_context(_c, LLL_WARN, __VA_ARGS__)
422 #define lwsl_hexdump_cx_notice(_c, ...) lwsl_hexdump_context(_c, LLL_NOTICE, __VA_ARGS__)
423 #define lwsl_hexdump_cx_info(_c, ...) lwsl_hexdump_context(_c, LLL_INFO, __VA_ARGS__)
424 #define lwsl_hexdump_cx_debug(_c, ...) lwsl_hexdump_context(_c, LLL_DEBUG, __VA_ARGS__)
430 #if (_LWS_ENABLED_LOGS & LLL_ERR)
431 #define lwsl_vhost_err(_v, ...) lwsl_vhost(_v, LLL_ERR, __VA_ARGS__)
433 #define lwsl_vhost_err(_v, ...) do {} while(0)
436 #if (_LWS_ENABLED_LOGS & LLL_WARN)
437 #define lwsl_vhost_warn(_v, ...) lwsl_vhost(_v, LLL_WARN, __VA_ARGS__)
439 #define lwsl_vhost_warn(_v, ...) do {} while(0)
442 #if (_LWS_ENABLED_LOGS & LLL_NOTICE)
443 #define lwsl_vhost_notice(_v, ...) lwsl_vhost(_v, LLL_NOTICE, __VA_ARGS__)
445 #define lwsl_vhost_notice(_v, ...) do {} while(0)
448 #if (_LWS_ENABLED_LOGS & LLL_INFO)
449 #define lwsl_vhost_info(_v, ...) lwsl_vhost(_v, LLL_INFO, __VA_ARGS__)
451 #define lwsl_vhost_info(_v, ...) do {} while(0)
454 #if (_LWS_ENABLED_LOGS & LLL_DEBUG)
455 #define lwsl_vhost_debug(_v, ...) lwsl_vhost(_v, LLL_DEBUG, __VA_ARGS__)
457 #define lwsl_vhost_debug(_v, ...) do {} while(0)
460 #if (_LWS_ENABLED_LOGS & LLL_PARSER)
461 #define lwsl_vhost_parser(_v, ...) lwsl_vhost(_v, LLL_PARSER, __VA_ARGS__)
463 #define lwsl_vhost_parser(_v, ...) do {} while(0)
466 #if (_LWS_ENABLED_LOGS & LLL_HEADER)
467 #define lwsl_vhost_header(_v, ...) lwsl_vhost(_v, LLL_HEADER, __VA_ARGS__)
469 #define lwsl_vhost_header(_v, ...) do {} while(0)
472 #if (_LWS_ENABLED_LOGS & LLL_EXT)
473 #define lwsl_vhost_ext(_v, ...) lwsl_vhost(_v, LLL_EXT, __VA_ARGS__)
475 #define lwsl_vhost_ext(_v, ...) do {} while(0)
478 #if (_LWS_ENABLED_LOGS & LLL_CLIENT)
479 #define lwsl_vhost_client(_v, ...) lwsl_vhost(_v, LLL_CLIENT, __VA_ARGS__)
481 #define lwsl_vhost_client(_v, ...) do {} while(0)
484 #if (_LWS_ENABLED_LOGS & LLL_LATENCY)
485 #define lwsl_vhost_latency(_v, ...) lwsl_vhost(_v, LLL_LATENCY, __VA_ARGS__)
487 #define lwsl_vhost_latency(_v, ...) do {} while(0)
490 #if (_LWS_ENABLED_LOGS & LLL_THREAD)
491 #define lwsl_vhost_thread(_v, ...) lwsl_vhost(_v, LLL_THREAD, __VA_ARGS__)
493 #define lwsl_vhost_thread(_v, ...) do {} while(0)
496 #if (_LWS_ENABLED_LOGS & LLL_USER)
497 #define lwsl_vhost_user(_v, ...) lwsl_vhost(_v, LLL_USER, __VA_ARGS__)
499 #define lwsl_vhost_user(_v, ...) do {} while(0)
502 #define lwsl_hexdump_vhost_err(_v, ...) lwsl_hexdump_vhost(_v, LLL_ERR, __VA_ARGS__)
503 #define lwsl_hexdump_vhost_warn(_v, ...) lwsl_hexdump_vhost(_v, LLL_WARN, __VA_ARGS__)
504 #define lwsl_hexdump_vhost_notice(_v, ...) lwsl_hexdump_vhost(_v, LLL_NOTICE, __VA_ARGS__)
505 #define lwsl_hexdump_vhost_info(_v, ...) lwsl_hexdump_vhost(_v, LLL_INFO, __VA_ARGS__)
506 #define lwsl_hexdump_vhost_debug(_v, ...) lwsl_hexdump_vhost(_v, LLL_DEBUG, __VA_ARGS__)
513 #if (_LWS_ENABLED_LOGS & LLL_ERR)
514 #define lwsl_wsi_err(_w, ...) lwsl_wsi(_w, LLL_ERR, __VA_ARGS__)
516 #define lwsl_wsi_err(_w, ...) do {} while(0)
519 #if (_LWS_ENABLED_LOGS & LLL_WARN)
520 #define lwsl_wsi_warn(_w, ...) lwsl_wsi(_w, LLL_WARN, __VA_ARGS__)
522 #define lwsl_wsi_warn(_w, ...) do {} while(0)
525 #if (_LWS_ENABLED_LOGS & LLL_NOTICE)
526 #define lwsl_wsi_notice(_w, ...) lwsl_wsi(_w, LLL_NOTICE, __VA_ARGS__)
528 #define lwsl_wsi_notice(_w, ...) do {} while(0)
531 #if (_LWS_ENABLED_LOGS & LLL_INFO)
532 #define lwsl_wsi_info(_w, ...) lwsl_wsi(_w, LLL_INFO, __VA_ARGS__)
534 #define lwsl_wsi_info(_w, ...) do {} while(0)
537 #if (_LWS_ENABLED_LOGS & LLL_DEBUG)
538 #define lwsl_wsi_debug(_w, ...) lwsl_wsi(_w, LLL_DEBUG, __VA_ARGS__)
540 #define lwsl_wsi_debug(_w, ...) do {} while(0)
543 #if (_LWS_ENABLED_LOGS & LLL_PARSER)
544 #define lwsl_wsi_parser(_w, ...) lwsl_wsi(_w, LLL_PARSER, __VA_ARGS__)
546 #define lwsl_wsi_parser(_w, ...) do {} while(0)
549 #if (_LWS_ENABLED_LOGS & LLL_HEADER)
550 #define lwsl_wsi_header(_w, ...) lwsl_wsi(_w, LLL_HEADER, __VA_ARGS__)
552 #define lwsl_wsi_header(_w, ...) do {} while(0)
555 #if (_LWS_ENABLED_LOGS & LLL_EXT)
556 #define lwsl_wsi_ext(_w, ...) lwsl_wsi(_w, LLL_EXT, __VA_ARGS__)
558 #define lwsl_wsi_ext(_w, ...) do {} while(0)
561 #if (_LWS_ENABLED_LOGS & LLL_CLIENT)
562 #define lwsl_wsi_client(_w, ...) lwsl_wsi(_w, LLL_CLIENT, __VA_ARGS__)
564 #define lwsl_wsi_client(_w, ...) do {} while(0)
567 #if (_LWS_ENABLED_LOGS & LLL_LATENCY)
568 #define lwsl_wsi_latency(_w, ...) lwsl_wsi(_w, LLL_LATENCY, __VA_ARGS__)
570 #define lwsl_wsi_latency(_w, ...) do {} while(0)
573 #if (_LWS_ENABLED_LOGS & LLL_THREAD)
574 #define lwsl_wsi_thread(_w, ...) lwsl_wsi(_w, LLL_THREAD, __VA_ARGS__)
576 #define lwsl_wsi_thread(_w, ...) do {} while(0)
579 #if (_LWS_ENABLED_LOGS & LLL_USER)
580 #define lwsl_wsi_user(_w, ...) lwsl_wsi(_w, LLL_USER, __VA_ARGS__)
582 #define lwsl_wsi_user(_w, ...) do {} while(0)
585 #define lwsl_hexdump_wsi_err(_v, ...) lwsl_hexdump_wsi(_v, LLL_ERR, __VA_ARGS__)
586 #define lwsl_hexdump_wsi_warn(_v, ...) lwsl_hexdump_wsi(_v, LLL_WARN, __VA_ARGS__)
587 #define lwsl_hexdump_wsi_notice(_v, ...) lwsl_hexdump_wsi(_v, LLL_NOTICE, __VA_ARGS__)
588 #define lwsl_hexdump_wsi_info(_v, ...) lwsl_hexdump_wsi(_v, LLL_INFO, __VA_ARGS__)
589 #define lwsl_hexdump_wsi_debug(_v, ...) lwsl_hexdump_wsi(_v, LLL_DEBUG, __VA_ARGS__)
596 #if (_LWS_ENABLED_LOGS & LLL_ERR)
597 #define lwsl_ss_err(_w, ...) lwsl_ss(_w, LLL_ERR, __VA_ARGS__)
599 #define lwsl_ss_err(_w, ...) do {} while(0)
602 #if (_LWS_ENABLED_LOGS & LLL_WARN)
603 #define lwsl_ss_warn(_w, ...) lwsl_ss(_w, LLL_WARN, __VA_ARGS__)
605 #define lwsl_ss_warn(_w, ...) do {} while(0)
608 #if (_LWS_ENABLED_LOGS & LLL_NOTICE)
609 #define lwsl_ss_notice(_w, ...) lwsl_ss(_w, LLL_NOTICE, __VA_ARGS__)
611 #define lwsl_ss_notice(_w, ...) do {} while(0)
614 #if (_LWS_ENABLED_LOGS & LLL_INFO)
615 #define lwsl_ss_info(_w, ...) lwsl_ss(_w, LLL_INFO, __VA_ARGS__)
617 #define lwsl_ss_info(_w, ...) do {} while(0)
620 #if (_LWS_ENABLED_LOGS & LLL_DEBUG)
621 #define lwsl_ss_debug(_w, ...) lwsl_ss(_w, LLL_DEBUG, __VA_ARGS__)
623 #define lwsl_ss_debug(_w, ...) do {} while(0)
626 #if (_LWS_ENABLED_LOGS & LLL_PARSER)
627 #define lwsl_ss_parser(_w, ...) lwsl_ss(_w, LLL_PARSER, __VA_ARGS__)
629 #define lwsl_ss_parser(_w, ...) do {} while(0)
632 #if (_LWS_ENABLED_LOGS & LLL_HEADER)
633 #define lwsl_ss_header(_w, ...) lwsl_ss(_w, LLL_HEADER, __VA_ARGS__)
635 #define lwsl_ss_header(_w, ...) do {} while(0)
638 #if (_LWS_ENABLED_LOGS & LLL_EXT)
639 #define lwsl_ss_ext(_w, ...) lwsl_ss(_w, LLL_EXT, __VA_ARGS__)
641 #define lwsl_ss_ext(_w, ...) do {} while(0)
644 #if (_LWS_ENABLED_LOGS & LLL_CLIENT)
645 #define lwsl_ss_client(_w, ...) lwsl_ss(_w, LLL_CLIENT, __VA_ARGS__)
647 #define lwsl_ss_client(_w, ...) do {} while(0)
650 #if (_LWS_ENABLED_LOGS & LLL_LATENCY)
651 #define lwsl_ss_latency(_w, ...) lwsl_ss(_w, LLL_LATENCY, __VA_ARGS__)
653 #define lwsl_ss_latency(_w, ...) do {} while(0)
656 #if (_LWS_ENABLED_LOGS & LLL_THREAD)
657 #define lwsl_ss_thread(_w, ...) lwsl_ss(_w, LLL_THREAD, __VA_ARGS__)
659 #define lwsl_ss_thread(_w, ...) do {} while(0)
662 #if (_LWS_ENABLED_LOGS & LLL_USER)
663 #define lwsl_ss_user(_w, ...) lwsl_ss(_w, LLL_USER, __VA_ARGS__)
665 #define lwsl_ss_user(_w, ...) do {} while(0)
668 #define lwsl_hexdump_ss_err(_v, ...) lwsl_hexdump_ss(_v, LLL_ERR, __VA_ARGS__)
669 #define lwsl_hexdump_ss_warn(_v, ...) lwsl_hexdump_ss(_v, LLL_WARN, __VA_ARGS__)
670 #define lwsl_hexdump_ss_notice(_v, ...) lwsl_hexdump_ss(_v, LLL_NOTICE, __VA_ARGS__)
671 #define lwsl_hexdump_ss_info(_v, ...) lwsl_hexdump_ss(_v, LLL_INFO, __VA_ARGS__)
672 #define lwsl_hexdump_ss_debug(_v, ...) lwsl_hexdump_ss(_v, LLL_DEBUG, __VA_ARGS__)
691 int hexdump_level,
const void *vbuf,
size_t len);
710 const int probe = ~0xff;
712 return *(
const char *)&probe;
lws_log_prepend_cx_t prepend
lws_log_use_cx_t refcount_cb
struct lws_log_cx * parent
LWS_VISIBLE LWS_EXTERN void lwsl_hexdump_level(int level, const void *vbuf, size_t len)
LWS_VISIBLE LWS_EXTERN void _lws_log(int filter, const char *format,...) LWS_FORMAT(2)
LWS_VISIBLE LWS_EXTERN struct lws_log_cx * lwsl_vhost_get_cx(struct lws_vhost *vh)
LWS_VISIBLE LWS_EXTERN int lwsl_visible(int level)
LWS_VISIBLE LWS_EXTERN void lws_log_prepend_vhost(struct lws_log_cx *cx, void *obj, char **p, char *e)
LWS_VISIBLE LWS_EXTERN void lws_set_log_level(int level, lws_log_emit_t log_emit_function)
LWS_VISIBLE LWS_EXTERN int lwsl_timestamp(int level, char *p, size_t len)
LWS_VISIBLE LWS_EXTERN void lwsl_emit_stderr_notimestamp(int level, const char *line)
struct lws_log_cx lws_log_cx_t
LWS_VISIBLE LWS_EXTERN void lwsl_hexdump(const void *buf, size_t len)
LWS_VISIBLE LWS_EXTERN void lws_log_emit_cx_file(struct lws_log_cx *cx, int level, const char *line, size_t len)
LWS_VISIBLE LWS_EXTERN void _lws_logv(int filter, const char *format, va_list vl)
LWS_VISIBLE LWS_EXTERN void lwsl_hexdump_level_cx(lws_log_cx_t *cx, lws_log_prepend_cx_t prep, void *obj, int hexdump_level, const void *vbuf, size_t len)
LWS_VISIBLE LWS_EXTERN struct lws_log_cx * lwsl_wsi_get_cx(struct lws *wsi)
LWS_VISIBLE LWS_EXTERN struct lws_log_cx * lwsl_context_get_cx(struct lws_context *cx)
LWS_VISIBLE LWS_EXTERN void _lws_log_cx(lws_log_cx_t *cx, lws_log_prepend_cx_t prep, void *obj, int filter, const char *_fun, const char *format,...) LWS_FORMAT(6)
LWS_VISIBLE LWS_EXTERN void lwsl_emit_stderr(int level, const char *line)
void(* lws_log_prepend_cx_t)(struct lws_log_cx *cx, void *obj, char **p, char *e)
LWS_VISIBLE LWS_EXTERN void lwsl_emit_syslog(int level, const char *line)
LWS_VISIBLE LWS_EXTERN void lws_log_prepend_wsi(struct lws_log_cx *cx, void *obj, char **p, char *e)
void(* lws_log_use_cx_t)(struct lws_log_cx *cx, int _new)
LWS_VISIBLE LWS_EXTERN const char * lws_wsi_tag(struct lws *wsi)
void(* lws_log_emit_t)(int level, const char *line)
LWS_VISIBLE LWS_EXTERN void lws_log_use_cx_file(struct lws_log_cx *cx, int _new)
LWS_VISIBLE LWS_EXTERN void lws_log_prepend_context(struct lws_log_cx *cx, void *obj, char **p, char *e)
LWS_VISIBLE LWS_EXTERN void lwsl_refcount_cx(lws_log_cx_t *cx, int _new)
void(* lws_log_emit_cx_t)(struct lws_log_cx *cx, int level, const char *line, size_t len)
#define LWS_FORMAT(string_index)
LWS_VISIBLE LWS_EXTERN struct lws_log_cx * lwsl_sspc_get_cx(struct lws_sspc_handle *ss)
LWS_VISIBLE LWS_EXTERN void lws_log_prepend_sspc(struct lws_log_cx *cx, void *obj, char **p, char *e)