mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make logging cost free when there is no output target (#12247)
The logging streams now do almost no work when there is no output target for them. For example, if LL_VERBOSE has no output targets, then `verbosestream << x` will return a StreamProxy with a null target. Any further `<<` operations applied to it will do nothing.
This commit is contained in:
parent
ae7664597e
commit
0704ca0550
14 changed files with 336 additions and 192 deletions
|
@ -1768,7 +1768,8 @@
|
|||
# - action
|
||||
# - info
|
||||
# - verbose
|
||||
# type: enum values: , none, error, warning, action, info, verbose
|
||||
# - trace
|
||||
# type: enum values: , none, error, warning, action, info, verbose, trace
|
||||
# debug_log_level = action
|
||||
|
||||
# If the file size of debug.txt exceeds the number of megabytes specified in
|
||||
|
@ -1779,7 +1780,7 @@
|
|||
# debug_log_size_max = 50
|
||||
|
||||
# Minimal level of logging to be written to chat.
|
||||
# type: enum values: , none, error, warning, action, info, verbose
|
||||
# type: enum values: , none, error, warning, action, info, verbose, trace
|
||||
# chat_log_level = error
|
||||
|
||||
# Enable IPv6 support (for both client and server).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue