diff --git a/include/anthem/output/Priority.h b/include/anthem/output/Priority.h index 47a5738..9a2ff40 100644 --- a/include/anthem/output/Priority.h +++ b/include/anthem/output/Priority.h @@ -15,7 +15,7 @@ namespace output enum class Priority { Debug, - Note, + Info, Warning, Error }; diff --git a/src/anthem/Translation.cpp b/src/anthem/Translation.cpp index e44af36..0bd870a 100644 --- a/src/anthem/Translation.cpp +++ b/src/anthem/Translation.cpp @@ -33,7 +33,7 @@ void translate(const std::vector &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(stream), {}); diff --git a/src/anthem/output/Logger.cpp b/src/anthem/output/Logger.cpp index 720bb4f..0b4ae1e 100644 --- a/src/anthem/output/Logger.cpp +++ b/src/anthem/output/Logger.cpp @@ -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: