Skip to content

add pretty function option #788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 4, 2025
Merged

add pretty function option #788

merged 3 commits into from
Jun 4, 2025

Conversation

odygrd
Copy link
Owner

@odygrd odygrd commented Jun 4, 2025

No description provided.

@odygrd odygrd linked an issue Jun 4, 2025 that may be closed by this pull request
@steve-lorimer
Copy link

🎉

@odygrd odygrd merged commit 0a3b66f into master Jun 4, 2025
37 checks passed
@odygrd odygrd deleted the pretty_function branch June 4, 2025 13:29

option(QUILL_DETAILED_FUNCTION_NAME "Use detailed function name (__PRETTY_FUNCTION__ or __FUNCSIG__) instead of __FUNCTION__ in LOG_* macros" OFF)

Enables the use of compiler-specific detailed function signatures (such as ``__PRETTY_FUNCTION__`` on GCC/Clang or ``__FUNCSIG__`` on MSVC) instead of the standard ``__FUNCTION__`` in log macros. This option is only relevant when ``%(caller_function)`` is used in the pattern formatter. When enabled, you can further customize the function name display by providing a processing function via ``PatternFormatterOptions::process_detailed_function_name``.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be PatternFormatterOptions::process_function_name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FR: PatternFormatter to print Class::Function
2 participants