Renamed “note” to “info.”
This commit is contained in:
parent
da63f984c1
commit
5816207af7
@ -15,7 +15,7 @@ namespace output
|
||||
enum class Priority
|
||||
{
|
||||
Debug,
|
||||
Note,
|
||||
Info,
|
||||
Warning,
|
||||
Error
|
||||
};
|
||||
|
@ -33,7 +33,7 @@ void translate(const std::vector<std::string> &fileNames, Context &context)
|
||||
void translate(const char *fileName, std::istream &stream, Context &context)
|
||||
{
|
||||
// TODO: refactor
|
||||
context.logger.log(output::Priority::Note, (std::string("reading ") + fileName).c_str());
|
||||
context.logger.log(output::Priority::Info, (std::string("reading ") + fileName).c_str());
|
||||
|
||||
auto fileContent = std::string(std::istreambuf_iterator<char>(stream), {});
|
||||
|
||||
|
@ -19,7 +19,7 @@ constexpr Format priorityFormat(Priority priority)
|
||||
{
|
||||
case Priority::Debug:
|
||||
return {Color::Green, FontWeight::Bold};
|
||||
case Priority::Note:
|
||||
case Priority::Info:
|
||||
return {Color::Cyan, FontWeight::Bold};
|
||||
case Priority::Warning:
|
||||
return {Color::Magenta, FontWeight::Bold};
|
||||
@ -38,8 +38,8 @@ constexpr const char *priorityName(Priority priority)
|
||||
{
|
||||
case Priority::Debug:
|
||||
return "debug";
|
||||
case Priority::Note:
|
||||
return "note";
|
||||
case Priority::Info:
|
||||
return "info";
|
||||
case Priority::Warning:
|
||||
return "warning";
|
||||
case Priority::Error:
|
||||
|
Loading…
Reference in New Issue
Block a user