LibreOffice Module extensions (master) 1
|
Classes | |
class | ComponentMethodGuard |
class | LogHandlerHelper |
Typedefs | |
typedef ::cppu::WeakComponentImplHelper< XConsoleHandler, XServiceInfo > | ConsoleHandler_Base |
typedef ::cppu::WeakComponentImplHelper< XLogHandler, XServiceInfo > | FileHandler_Base |
Functions | |
void | initializeLoggerFromConfiguration (const Reference< XComponentContext > &_rContext, const Reference< XLogger > &_rxLogger) |
void | initializeLoggerFromConfiguration (const css::uno::Reference< css::uno::XComponentContext > &_rContext, const css::uno::Reference< css::logging::XLogger > &_rxLogger) |
initializes the given logger from the configuration More... | |
LogRecord | createLogRecord (const OUString &_rLoggerName, const OUString &_rClassName, const OUString &_rMethodName, const OUString &_rMessage, sal_Int32 _nLogLevel, oslInterlockedCount _nEventNumber) |
css::logging::LogRecord | createLogRecord (const OUString &_rLoggerName, const OUString &_rMessage, sal_Int32 _nLogLevel, oslInterlockedCount _nEventNumber) |
typedef ::cppu::WeakComponentImplHelper< XConsoleHandler , XServiceInfo > logging::ConsoleHandler_Base |
Definition at line 52 of file consolehandler.cxx.
typedef ::cppu::WeakComponentImplHelper< XLogHandler , XServiceInfo > logging::FileHandler_Base |
Definition at line 60 of file filehandler.cxx.
css::logging::LogRecord logging::createLogRecord | ( | const OUString & | _rLoggerName, |
const OUString & | _rClassName, | ||
const OUString & | _rMethodName, | ||
const OUString & | _rMessage, | ||
sal_Int32 | _nLogLevel, | ||
oslInterlockedCount | _nEventNumber | ||
) |
Definition at line 51 of file logrecord.cxx.
Referenced by createLogRecord().
|
inline |
Definition at line 39 of file logrecord.hxx.
References createLogRecord().
void logging::initializeLoggerFromConfiguration | ( | const css::uno::Reference< css::uno::XComponentContext > & | _rContext, |
const css::uno::Reference< css::logging::XLogger > & | _rxLogger | ||
) |
initializes the given logger from the configuration
The configuration node /org.openoffice.Office.Logging/Settings/<logger_name> is examined for this. If it does not yet exist, it will be created.
The function creates a default handler and a default formatter, as specified in the configuration.
This function is currently external to the logger instance. Perhaps it can, on the long run, be moved to the logger implementation - not sure if it's the best place.
void logging::initializeLoggerFromConfiguration | ( | const Reference< XComponentContext > & | _rContext, |
const Reference< XLogger > & | _rxLogger | ||
) |
Definition at line 212 of file loggerconfig.cxx.
References aArguments, Any, DBG_UNHANDLED_EXCEPTION, and Exception.