[libcalamares] Remove internal functions from the logging API
This commit is contained in:
parent
3e30bb682e
commit
ad6227ce21
@ -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 )
|
CalamaresLogHandler( QtMsgType type, const QMessageLogContext& context, const QString& msg )
|
||||||
{
|
{
|
||||||
static QMutex s_mutex;
|
static QMutex s_mutex;
|
||||||
@ -116,7 +116,7 @@ CalamaresLogHandler( QtMsgType type, const QMessageLogContext& context, const QS
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QString
|
static QString
|
||||||
logFile()
|
logFile()
|
||||||
{
|
{
|
||||||
return CalamaresUtils::appLogDir().filePath( "session.log" );
|
return CalamaresUtils::appLogDir().filePath( "session.log" );
|
||||||
|
@ -58,9 +58,14 @@ namespace Logger
|
|||||||
virtual ~CDebug();
|
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 void setupLogfile();
|
||||||
DLLEXPORT QString logFile();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set a log level for future logging.
|
* @brief Set a log level for future logging.
|
||||||
|
Loading…
Reference in New Issue
Block a user