For example, we can have a single macro PH_LOG() and specify the log level directly in the second parameter. LogLevel should have several members such as NoteOnce, WarningOnce, ErrorOnce.
Might not need to specify the enum name LogLevel repetitively in the log macro, just specify the member name and the macro should take care of it (adding the enum name for you).
For example, we can have a single macro
PH_LOG()
and specify the log level directly in the second parameter.LogLevel
should have several members such asNoteOnce
,WarningOnce
,ErrorOnce
.Might not need to specify the enum name
LogLevel
repetitively in the log macro, just specify the member name and the macro should take care of it (adding the enum name for you).