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

ofLog - fix log alignment for notice #6955

Closed
wants to merge 9 commits into from
12 changes: 6 additions & 6 deletions libs/openFrameworks/utils/ofLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,17 @@ shared_ptr<ofBaseLoggerChannel> ofGetLoggerChannel(){
string ofGetLogLevelName(ofLogLevel level, bool pad){
switch(level){
case OF_LOG_VERBOSE:
return "verbose";
return pad ? " verbose" : "verbose";
case OF_LOG_NOTICE:
return pad ? "notice " : "notice";
return pad ? " notice " : "notice";
case OF_LOG_WARNING:
return "warning";
return pad ? " warning" : "warning";
case OF_LOG_ERROR:
return pad ? " error " : "error";
return pad ? " error " : "error";
case OF_LOG_FATAL_ERROR:
return pad ? " fatal " : "fatal";
return pad ? " fatal " : "fatal";
Copy link
Member

Choose a reason for hiding this comment

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

@dimitre there is:

  • extra space after fatal, error
  • missing space after verbose and warning

case OF_LOG_SILENT:
return pad ? "silent " : "silent";
return pad ? " silent " : "silent";
default:
return "";
}
Expand Down