Browse Source

Add Logger::print10000thCommitMessage()

tags/2021-05-28
ed 6 years ago
parent
commit
7add963d40
2 changed files with 16 additions and 0 deletions
  1. +14
    -0
      modules/juce_core/logging/juce_Logger.cpp
  2. +2
    -0
      modules/juce_core/logging/juce_Logger.h

+ 14
- 0
modules/juce_core/logging/juce_Logger.cpp View File

@@ -45,6 +45,20 @@ void Logger::writeToLog (const String& message)
outputDebugString (message); outputDebugString (message);
} }
void Logger::print10000thCommitMessage()
{
writeToLog (R"CAKE(
) ( ) (
(^)(^)(^)(^)
_i__i__i__i_
(____________)
|####10000###|
(____________)
)CAKE");
}
#if JUCE_LOG_ASSERTIONS || JUCE_DEBUG #if JUCE_LOG_ASSERTIONS || JUCE_DEBUG
void JUCE_API JUCE_CALLTYPE logAssertion (const char* const filename, const int lineNum) noexcept void JUCE_API JUCE_CALLTYPE logAssertion (const char* const filename, const int lineNum) noexcept
{ {


+ 2
- 0
modules/juce_core/logging/juce_Logger.h View File

@@ -74,6 +74,8 @@ public:
*/ */
static void JUCE_CALLTYPE outputDebugString (const String& text); static void JUCE_CALLTYPE outputDebugString (const String& text);
/** Writes a celebratory message to the current logger. */
static void JUCE_CALLTYPE print10000thCommitMessage();
protected: protected:
//============================================================================== //==============================================================================


Loading…
Cancel
Save