From e8d130e7c6b2ff2a941372f386ee46fe8a95f218 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Thu, 25 Oct 2018 20:18:04 +0200 Subject: 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 --- include/comphelper/logging.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/comphelper') 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 #include +#include + namespace com { namespace sun { namespace star { namespace uno { template 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 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 -- cgit