-
Notifications
You must be signed in to change notification settings - Fork 11
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
Renaming endl to RESTendl and other loggers functions #225
Conversation
…and so on. Adding enums REST_Verbose_Level and REST_Display_Orientation inside TRestStringOutput class.
what it is doing Perhaps |
I think is standard output with silent verbosity.
Yes, perhaps we should have a quorum about this? Currently we have:
|
Ok, I updated I agree with |
OK, I can change that btw, do you prefer |
I think maybe it would be better to use a namespace for the logger methods i.e. Also I think the logger needs a bit of a rework (on a future PR), some of the things I would modify: Stop using This would allows us, among many things, to define custom formatting for things such as Use https://github.com/gabime/spdlog as the logging library and build a logger on top of it, instead of implementing it from scratch, which has many nice features including https://github.com/gabime/spdlog#backtrace-support |
I think we should use
The main issue is that we are using the same implementation for different features, we have the |
…enever a custom TRestStringOuput is created inside a class/macro
This PR try to address the misleading use of custom
endl
and renames the different custom logger functions:endl
toRESTendl
. Note that we have 2 different ´RESTendl´.endl_t RESTendl
insideTRestMetadata
andstatic RESTendl
insideTRestStringOuput
. However, the implementation has not been changed.info
-->RESTInfo
debug
-->RESTDebug
essential
-->RESTEssential
warning
-->RESTWarning
fout
-->RESTcout
ferr
-->RESTError
REST_Verbose_Level
enum insideTRestStringOuput
class, now verbosity is written asTRestStringOutput::REST_Verbose_Level::REST_XXXX
.REST_Display_Orientation
enum insideTRestStringOuput.h
startup.cpp
now the custom loggers are defined asstatic
functions insideTRestStringOuput.h
define COLOR_XXX
insideTRestStringOuput.h
, usingconstexpr const char* const COLOR_
instead.Related PR: