32 jassert (currentLogger !=
this);
35 Logger* Logger::currentLogger =
nullptr;
42 if (currentLogger !=
nullptr)
48 #if JUCE_LOG_ASSERTIONS || JUCE_DEBUG 49 void 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.
#define JUCE_API
This macro is added to all JUCE public class declarations.
static void JUCE_CALLTYPE setCurrentLogger(Logger *newLogger) noexcept
Sets the current logging class to use.
virtual ~Logger()
Destructor.
static File createFileWithoutCheckingPath(const String &absolutePath) noexcept
Creates a file that simply contains this string, without doing the sanity-checking that the normal co...
static Logger *JUCE_CALLTYPE getCurrentLogger() noexcept
Returns the current logger, or nullptr if no custom logger has been set.
static void JUCE_CALLTYPE outputDebugString(const String &text)
Writes a message to the standard error stream.
Acts as an application-wide logging class.
static void JUCE_CALLTYPE writeToLog(const String &message)
Writes a string to the current logger.
virtual void logMessage(const String &message)=0
This is overloaded by subclasses to implement custom logging behaviour.