diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-10-25 20:18:04 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-10-26 10:21:33 +0200 |
commit | e8d130e7c6b2ff2a941372f386ee46fe8a95f218 (patch) | |
tree | 5ff024aa9bf9512e9556bb0bb48dca66c4dd81b3 /include/comphelper | |
parent | 8a678b1f51e5dcd0961f21a8ea4cfb43bae5ec07 (diff) |
Log unopkg errors to log file if requested
Before only the output generated by extension add/remove/... functions
were logged to file, but not the error messages of unopkg itself.
Change-Id: I4451aa51e2877ae48c453ee4791e36d970832567
Reviewed-on: https://gerrit.libreoffice.org/62369
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/logging.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/comphelper/logging.hxx b/include/comphelper/logging.hxx index 475f067062bf..8c1ddbd7fec0 100644 --- a/include/comphelper/logging.hxx +++ b/include/comphelper/logging.hxx @@ -26,6 +26,8 @@ #include <boost/optional.hpp> #include <memory> +#include <com/sun/star/logging/XLogger.hpp> + namespace com { namespace sun { namespace star { namespace uno { template <class interface_type> class Reference; } } } } namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } } @@ -123,6 +125,8 @@ namespace comphelper impl_log(_nLogLevel, nullptr, nullptr, rMessage); } + const css::uno::Reference<css::logging::XLogger> getLogger(); + /** logs a given message, replacing a placeholder in the message with an argument The function takes, additionally to the log level and the message, an arbitrary |