Skip to content
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

Logger / LogLevel rework #3134

Draft
wants to merge 23 commits into
base: develop
Choose a base branch
from
Draft

Logger / LogLevel rework #3134

wants to merge 23 commits into from

Conversation

MelReyCG
Copy link
Contributor

Draft PR

@MelReyCG MelReyCG self-assigned this May 21, 2024
Comment on lines +35 to +47
template< typename CONTEXT_T >
class LoggingObject
{

void setLogLevel( LogLevel value );


virtual void logRank0( LogMsg::CallParams loc, string_view msg, LogRouter router = LogRouter::m_main ) const = 0;

// TODO not exactly sure how to implement that (avoid formating if cond is false, keeping condition as metadata).
// virtual void logRank0If( bool cond, LogMsg::CallParams loc, string_view msg, LogRouter router = LogRouter::m_main ) const = 0;

virtual void log( LogMsg::CallParams loc, string_view msg, LogRouter router = LogRouter::m_main ) const = 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rrsettgast As the meeting of today concluded, I will explore a solution where LoggingObject would be a "light version" when called from a kernel. If that does not work, I will go for macros.

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.

None yet

1 participant