Skip to content

Commit

Permalink
Logger improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
XITRIX committed Nov 2, 2024
1 parent 26cbf4f commit cacf8f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/include/borealis/core/logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ enum class LogLevel
LOG_VERBOSE
};

#ifdef IOS
#ifdef PLATFORM_APPLE
#define BRLS_ERROR_COLOR "🔴"
#define BRLS_WARNING_COLOR "🟠"
#define BRLS_INFO_COLOR "🔵"
Expand Down Expand Up @@ -109,7 +109,7 @@ class Logger

try
{
#ifdef IOS
#ifdef PLATFORM_APPLE
fmt::print(logOut, "{:%H:%M:%S}.{:03d} {} {}\n", time_tm, (int)ms, color, log);
#elif defined(ANDROID)
__android_log_print(6 - (int)level, "borealis", "%02d:%02d:%02d.%03d %s\n", time_tm.tm_hour, time_tm.tm_min, time_tm.tm_sec, (int)ms, log.c_str());
Expand Down

0 comments on commit cacf8f4

Please sign in to comment.