summaryrefslogtreecommitdiff
path: root/include/comphelper/logging.hxx
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-10-25 20:18:04 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-10-26 10:21:33 +0200
commite8d130e7c6b2ff2a941372f386ee46fe8a95f218 (patch)
tree5ff024aa9bf9512e9556bb0bb48dca66c4dd81b3 /include/comphelper/logging.hxx
parent8a678b1f51e5dcd0961f21a8ea4cfb43bae5ec07 (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/logging.hxx')
-rw-r--r--include/comphelper/logging.hxx4
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