32 jassert (currentLogger !=
this);
35Logger* Logger::currentLogger =
nullptr;
42 if (currentLogger !=
nullptr)
48#if JUCE_LOG_ASSERTIONS || JUCE_DEBUG
49void JUCE_API JUCE_CALLTYPE logAssertion (
const char*
const filename,
const int lineNum)
noexcept
51 String m (
"JUCE Assertion failure in ");
54 #if JUCE_LOG_ASSERTIONS
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.
static void JUCE_CALLTYPE outputDebugString(const String &text)
Writes a message to the standard error stream.
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 Logger *JUCE_CALLTYPE getCurrentLogger() noexcept
Returns the current logger, or nullptr if no custom logger has been set.
#define JUCE_API
This macro is added to all JUCE public class declarations.