[libcalamares] Remove internal functions from the logging API

This commit is contained in:
Adriaan de Groot 2018-03-28 09:27:11 -04:00
parent 3e30bb682e
commit ad6227ce21
2 changed files with 9 additions and 4 deletions

View File

@ -86,7 +86,7 @@ log( const char* msg, unsigned int debugLevel, bool toDisk = true )
}
void
static void
CalamaresLogHandler( QtMsgType type, const QMessageLogContext& context, const QString& msg )
{
static QMutex s_mutex;
@ -116,7 +116,7 @@ CalamaresLogHandler( QtMsgType type, const QMessageLogContext& context, const QS
}
QString
static QString
logFile()
{
return CalamaresUtils::appLogDir().filePath( "session.log" );

View File

@ -58,9 +58,14 @@ namespace Logger
virtual ~CDebug();
};
DLLEXPORT void CalamaresLogHandler( QtMsgType type, const QMessageLogContext& context, const QString& msg );
/**
* @brief Start logging to the log file.
*
* Call this (once) to start logging to the log file (usually
* ~/.cache/calamares/session.log ). An existing log file is
* rolled over if it is too large.
*/
DLLEXPORT void setupLogfile();
DLLEXPORT QString logFile();
/**
* @brief Set a log level for future logging.