You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message and logging (MLOG) has been reimplemented to have much simpler APIs than the original printf/mprintf/mlog that are Sawyer-based. The implementation is in src/util/mlog.h/C files and a test file is provided in tests/smoke/unit/Utilitiy/testMLog.C. The mlog.h header files include docs about how to use those APIs and the testMLog.C shows examples of using them (for both C-based and C++-based APIs). The implementation also include different variants of ASSERT and ABORT.
MLOG can be written in text/source code in either MLOG, MLog, mlog, but not Mlog, i.e. the first two letters (m and l) should be written either both capitalized, or both in small case, not mix.
Since the APIs are all in C/C++ macros, so we all use capitalized identifiers, e.g. MLOG_WARN_*
MLOG_* APIs allows for verbose level control so messages can be spit out based on the level, but it does not need to do the level control when using those APIs. Verbose-controlled mlog are all implemented by those APIs. Please check mlog.h file in details about the levels and details.
Right now, we have not yet completed updated and cleanup the current printf/verbose control in the source base. To do that requires a substantial amount of work and depth understanding of the whole source code, we will do that when we are comfortable and have time for that.
Currently the verbose-level control is done by a single global variable to control all the mlogging, ideally, we can implement to support subject-level verbose control or even file/functional level verbose-control, of course they will all fall back to global level verbose control if no local-level is provided.
The text was updated successfully, but these errors were encountered:
message and logging (MLOG) has been reimplemented to have much simpler APIs than the original printf/mprintf/mlog that are Sawyer-based. The implementation is in src/util/mlog.h/C files and a test file is provided in tests/smoke/unit/Utilitiy/testMLog.C. The mlog.h header files include docs about how to use those APIs and the testMLog.C shows examples of using them (for both C-based and C++-based APIs). The implementation also include different variants of ASSERT and ABORT.
MLOG can be written in text/source code in either MLOG, MLog, mlog, but not Mlog, i.e. the first two letters (m and l) should be written either both capitalized, or both in small case, not mix.
Since the APIs are all in C/C++ macros, so we all use capitalized identifiers, e.g. MLOG_WARN_*
MLOG_* APIs allows for verbose level control so messages can be spit out based on the level, but it does not need to do the level control when using those APIs. Verbose-controlled mlog are all implemented by those APIs. Please check mlog.h file in details about the levels and details.
Right now, we have not yet completed updated and cleanup the current printf/verbose control in the source base. To do that requires a substantial amount of work and depth understanding of the whole source code, we will do that when we are comfortable and have time for that.
Currently the verbose-level control is done by a single global variable to control all the mlogging, ideally, we can implement to support subject-level verbose control or even file/functional level verbose-control, of course they will all fall back to global level verbose control if no local-level is provided.
The text was updated successfully, but these errors were encountered: