1 .. _module-pw_log_null:
6 ``pw_log_null`` is a ``pw_log backend`` that ignores all ``pw_log`` statements.
7 The backend implements ``PW_LOG`` with an empty inline function. Using an empty
8 function ensures that the arguments are evaluated and their types are correct.
9 Since the function is inline in the header, the compiler will optimize out the
12 This backend can be used to completely disable ``pw_log``, which may be helpful
13 in certain development situations (e.g. to avoid circular dependencies).
16 If you are concerned about the resource demands of logging, try tokenizing
17 logs with :ref:`module-pw_tokenizer` and :ref:`module-pw_log_tokenized`
18 instead of disabling logs completely. Tokenized logs provide exactly same
19 information as plain text logs but use dramatically less resources.