32 jassert (currentLogger !=
this);
35Logger* Logger::currentLogger =
nullptr;
42 if (currentLogger !=
nullptr)
48#if JUCE_LOG_ASSERTIONS || JUCE_DEBUG
51 String m (
"JUCE Assertion failure in ");
54 #if JUCE_LOG_ASSERTIONS
Wraps a pointer to a null-terminated UTF-8 character string, and provides various methods to operate ...
String getFileName() const
Returns the last section of the pathname.
static File createFileWithoutCheckingPath(const String &absolutePath) noexcept
Creates a file that simply contains this string, without doing the sanity-checking that the normal co...
Acts as an application-wide logging class.
virtual void logMessage(const String &message)=0
This is overloaded by subclasses to implement custom logging behaviour.
virtual ~Logger()
Destructor.
static void JUCE_CALLTYPE writeToLog(const String &message)
Writes a string to the current logger.
static void JUCE_CALLTYPE setCurrentLogger(Logger *newLogger) noexcept
Sets the current logging class to use.
static void JUCE_CALLTYPE outputDebugString(const String &text)
Writes a message to the standard error stream.
static Logger *JUCE_CALLTYPE getCurrentLogger() noexcept
Returns the current logger, or nullptr if no custom logger has been set.
void logAssertion(const char *file, int line) noexcept
< This macro is added to all JUCE public class declarations.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...