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