Skip to content

Made QMMLOG macro to speed up logging that isn't used#41

Merged
thecybermind merged 3 commits into
mainfrom
dev_issue40
Mar 29, 2026
Merged

Made QMMLOG macro to speed up logging that isn't used#41
thecybermind merged 3 commits into
mainfrom
dev_issue40

Conversation

@thecybermind

Copy link
Copy Markdown
Owner

At point of use, it checks whether the log severity is greater than both the log sink level and the game console sink level. Also removed all uses of fmt::format in logging.

Now all logging is in all builds (not locked behind _DEBUG) and server startup time is a few milliseconds faster than the old release version and dozens of seconds faster than the old debug version, with logging at INFO level.

…is actually active in either the log file sink or game console sink. removed all uses of fmt::format in logging, switching to using stream insertion
@thecybermind thecybermind self-assigned this Mar 29, 2026
@thecybermind thecybermind added the enhancement New feature or request label Mar 29, 2026
@thecybermind thecybermind linked an issue Mar 29, 2026 that may be closed by this pull request
…o (int severity, const char* fmt, ...) and now supports varargs, which it will ignore entirely if the desired log severity is not met
@thecybermind thecybermind merged commit e117d9a into main Mar 29, 2026
2 checks passed
@thecybermind thecybermind deleted the dev_issue40 branch March 29, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve logging performance when not used

1 participant