TasLogger Class Reference

#include <ext/app/exttesttools/taslogger.h>

class TasLogger
Public Member Functions
voidclearLogFile()
voidconfigureEventLogger(TasCommand &)
voidconfigureLogger(TasCommand &)
voiddebug(const QString)
voiddisableLogger()
voidenableLogger()
voiderror(const QString)
voidfatal(const QString)
voidinfo(const QString)
voidlogEvents(QStringList)
TasLogger *logger()
voidremoveLogger()
voidsetLevel(const LogType &)
voidsetLogDir(const QString)
voidsetLogFile(const QString)
voidsetLogSize(int)
voidsetOutputter(bool)
voidstopEventLogging()
voiduseQDebug(bool)
voidwarning(const QString)

Member Function Documentation

clearLogFile ( )

voidclearLogFile()

configureEventLogger ( TasCommand & )

voidconfigureEventLogger(TasCommand &command)

configureLogger ( TasCommand & )

voidconfigureLogger(TasCommand &command)

Configures the logger based on the command data. Logger will not check the sanity of the settings.

debug ( const QString )

voiddebug(const QStringmessage)

disableLogger ( )

voiddisableLogger()

Disables the logger.

enableLogger ( )

voidenableLogger()

error ( const QString )

voiderror(const QStringmessage)

fatal ( const QString )

voidfatal(const QStringmessage)

info ( const QString )

voidinfo(const QStringmessage)

logEvents ( QStringList )

voidlogEvents(QStringListfilters =  QStringList())

logger ( )

TasLogger *logger()[static]

Returns the only instance of the logger.

removeLogger ( )

voidremoveLogger()[static]

setLevel ( const LogType & )

voidsetLevel(const LogType &level)

setLogDir ( const QString )

voidsetLogDir(const QStringlogPath)

setLogFile ( const QString )

voidsetLogFile(const QStringlogFileName)

Set the file and path to where to write the logs. The path needs to exists and is not created by the logger. logPath will default to /logs/testability if not set. Will also enable the logger.

setLogSize ( int )

voidsetLogSize(intsize)

setOutputter ( bool )

voidsetOutputter(boolintercept = true)

Set to intercept qDebug messages

stopEventLogging ( )

voidstopEventLogging()

useQDebug ( bool )

voiduseQDebug(booluse)

Directs all output from this logger to qDebug if true.

warning ( const QString )

voidwarning(const QStringmessage)