Holds static objects used for standard debug logging and provides an interface to create such objects. If compiler symbol ALOX_DBG_LOG is set to 0
, this class will be empty.
- Note
- : In C# and Java, this class is the interface class for debug logging which gets pruned, and mimics the functionality of class Lox. In C++, there is no need to double functionality of Lox here.
Definition at line 48 of file log.inl.
void AddDebugLogger |
( |
Lox * |
lox | ) |
|
|
static |
This method creates an adequate/default debug logger. It is used by macro Log_AddDebugLogger also automatically invoked when debug logging is used without the explicit creation and registration of any other logger.
Of-course, alternatively to using this method (resp. the macro), a suitable (set of) debug logger(s) can be created manually. Also, before or after using this method additional debug loggers may be created.
In the current version of ALox (future changes are likely), this method does:
- use Lox::CreateConsoleLogger to create the best compatible console logger for the running platform
- this logger will be added to the debug Lox object with specifying
Verbosity::Error
for internal domains.
- If under windows, a Visual Studio debug session is running, adds a VStudioLogger in addition to the standard console logger. This can be suppressed using configuration variable ALOX_NO_IDE_LOGGER
.
The name of the Logger created is "DEBUG_LOGGER"
. It will be registered with the standard Lox used for debug-logging, by setting Verbosities
An optionally created second, IDE-specific Logger will be named "IDE_LOGGER"
and will be registered with the standard Lox used for debug-logging with the same Verbosities as "DEBUG_LOGGER"
is.
Finally, this method also invokes AddALibReportWriter.
- Parameters
-
lox | The lox to add the debug logger(s) to. |
Definition at line 50 of file log.cpp.