afegit el namespace Logger
This commit is contained in:
@@ -33,6 +33,21 @@ inline void info(const std::string& msg, const std::string& color = WHITE) {
|
||||
std::cout << " " << color << msg << RESET << "\n";
|
||||
}
|
||||
|
||||
// Put
|
||||
inline void put(const std::string& msg, const std::string& color = WHITE) {
|
||||
std::cout << color << msg << RESET << "\n";
|
||||
}
|
||||
|
||||
// Error
|
||||
inline void error(const std::string& msg) {
|
||||
std::cout << RED << msg << RESET << "\n";
|
||||
}
|
||||
|
||||
// CR
|
||||
inline void CR() {
|
||||
std::cout << "\n";
|
||||
}
|
||||
|
||||
// Dots genérico
|
||||
inline void dots(const std::string& prefix,
|
||||
const std::string& middle,
|
||||
@@ -49,7 +64,7 @@ inline void dots(const std::string& prefix,
|
||||
field_text = middle.substr(0, field_width);
|
||||
}
|
||||
|
||||
std::cout << prefix << field_text
|
||||
std::cout << " " << prefix << field_text
|
||||
<< suffixColor << suffix << RESET
|
||||
<< "\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user