Skip to content

Commit

Permalink
Rename LogLevel::Warning to Warn
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Feb 2, 2024
1 parent 668f333 commit 39a5df4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
enum class LogLevel : u8 {
Off = 0, // --quiet
Error = 1,
Warning = 2,
Warn = 2,
Info = 3, // default
Debug = 4 // --verbose
};
Expand Down Expand Up @@ -41,7 +41,7 @@ class Logger {
}
template <typename... Ts>
static void warn(Ts&&... msgs) noexcept {
logln(LogLevel::Warning, std::forward<Ts>(msgs)...);
logln(LogLevel::Warn, std::forward<Ts>(msgs)...);
}
template <typename... Ts>
static void info(Ts&&... msgs) noexcept {
Expand Down Expand Up @@ -91,7 +91,7 @@ class Logger {
case LogLevel::Error:
os << bold(red("Error: ")) << std::forward<T>(head);
break;
case LogLevel::Warning:
case LogLevel::Warn:
os << bold(yellow("Warning: ")) << std::forward<T>(head);
break;
case LogLevel::Info:
Expand Down

0 comments on commit 39a5df4

Please sign in to comment.