Skip to content

Commit

Permalink
Update Logger.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
HerpDerpinstine authored Jul 18, 2020
1 parent 6e8005a commit 45ab9ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MelonLoader/Logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void Logger::LogTimestamp(ConsoleColor color)
localtime_s(&bt, &timer);
std::stringstream output;
output << std::put_time(&bt, "%H:%M:%S") << "." << std::setfill('0') << std::setw(3) << ms.count();
LogFile << "[" << output.str() << "] " << std::endl;
LogFile << "[" << output.str() << "] ";
Console::Write("[", ((color != ConsoleColor_Black) ? color : ConsoleColor_Gray));
Console::Write(output.str(), ((color != ConsoleColor_Black) ? color : ConsoleColor_Green));
Console::Write("] ", ((color != ConsoleColor_Black) ? color : ConsoleColor_Gray));
Expand Down Expand Up @@ -191,4 +191,4 @@ void Logger::LogDLLStatus(ModHandler_DLLStatus type)
Console::WriteLine("No MelonModGameAttribute!", ConsoleColor_Yellow);
else
Console::WriteLine("INCOMPATIBLE!", ConsoleColor_Red);
}
}

0 comments on commit 45ab9ca

Please sign in to comment.