OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_Logger.h>
Public Member Functions | |
virtual | ~Logger () |
Static Public Member Functions | |
static void JUCE_CALLTYPE | setCurrentLogger (Logger *newLogger) noexcept |
static Logger *JUCE_CALLTYPE | getCurrentLogger () noexcept |
static void JUCE_CALLTYPE | writeToLog (const String &message) |
static void JUCE_CALLTYPE | outputDebugString (const String &text) |
Protected Member Functions | |
virtual void | logMessage (const String &message)=0 |
Acts as an application-wide logging class.
A subclass of Logger can be created and passed into the Logger::setCurrentLogger method and this will then be used by all calls to writeToLog.
The logger class also contains methods for writing messages to the debugger's output stream.
Definition at line 40 of file juce_Logger.h.
|
virtual |
Destructor.
Definition at line 28 of file juce_Logger.cpp.
|
protected |
Definition at line 26 of file juce_Logger.cpp.
|
staticnoexcept |
Returns the current logger, or nullptr if no custom logger has been set.
Definition at line 38 of file juce_Logger.cpp.
This is overloaded by subclasses to implement custom logging behaviour.
Implemented in juce::FileLogger.
Writes a message to the standard error stream.
This can be called directly, or by using the DBG() macro in juce_PlatformDefs.h (which will avoid calling the method in non-debug builds).
Referenced by juce::PerformanceCounter::printStatistics(), and writeToLog().
Sets the current logging class to use.
Note that the object passed in will not be owned or deleted by the logger, so the caller must make sure that it is not deleted while still being used. A null pointer can be passed-in to reset the system to the default logger.
Definition at line 37 of file juce_Logger.cpp.
Writes a string to the current logger.
This will pass the string to the logger's logMessage() method if a logger has been set.
Definition at line 40 of file juce_Logger.cpp.
Referenced by juce::UnitTestRunner::logMessage(), and juce::Thread::stopThread().