From 6c87747a5dc7df416452f4b9561e87b10d6cae7e Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Sun, 20 May 2018 10:42:26 -0400 Subject: [PATCH] [libcalamares] Make it possible to get the logfile name --- src/libcalamares/utils/Logger.cpp | 2 +- src/libcalamares/utils/Logger.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libcalamares/utils/Logger.cpp b/src/libcalamares/utils/Logger.cpp index 0a13881d3..735414b85 100644 --- a/src/libcalamares/utils/Logger.cpp +++ b/src/libcalamares/utils/Logger.cpp @@ -116,7 +116,7 @@ CalamaresLogHandler( QtMsgType type, const QMessageLogContext& context, const QS } -static QString +QString logFile() { return CalamaresUtils::appLogDir().filePath( "session.log" ); diff --git a/src/libcalamares/utils/Logger.h b/src/libcalamares/utils/Logger.h index f7488b553..dba386eae 100644 --- a/src/libcalamares/utils/Logger.h +++ b/src/libcalamares/utils/Logger.h @@ -64,6 +64,11 @@ namespace Logger virtual ~CDebug(); }; + /** + * @brief The full path of the log file. + */ + DLLEXPORT QString logFile(); + /** * @brief Start logging to the log file. *