Explorar el Código

Better formatting

Eiyeron Fulmincendii hace 9 años
padre
commit
3e700d4304
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      platform/sfml/Logger.cpp

+ 3 - 3
platform/sfml/Logger.cpp

@@ -11,13 +11,13 @@ namespace
         char date_buffer[256];
         time_t now = time(0);
         strftime(date_buffer, 256, "%Y-%m-%d %H:%M:%S", localtime(&now));
-        printf("%s %5s : ", date_buffer, type);
+            printf("%s %5s : ", date_buffer, type);
     }
 }
 
 void Logger::log(const char *fmt, ...)
 {
-    print_premessage("[LOG]");
+    print_premessage("  [LOG]");
     va_list args;
     va_start(args, fmt);
     vprintf(fmt, args);
@@ -37,7 +37,7 @@ void Logger::debug(const char *fmt, ...)
 
 void Logger::warn(const char *fmt, ...)
 {
-    print_premessage("[WARN]");
+    print_premessage(" [WARN]");
     va_list args;
     va_start(args, fmt);
     vprintf(fmt, args);