LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
QsLogging::Logger Class Reference

#include <common/QsLog/QsLog.h>

Classes

class  Helper
 The helper forwards the streaming to QDebug and builds the final log message. More...
 

Public Member Functions

void addDestination (std::shared_ptr< Destination > destination)
 Adds a log message destination. Don't add null destinations.
 
void setLoggingLevel (Level newLevel)
 Logging at a level < 'newLevel' will be ignored.
 
Level loggingLevel () const
 The default level is INFO.
 
const QString & zone () const
 
bool isLoggingEnabled () const
 Returns true if logging level is lower than or equal to FatalLevel.
 
bool isTraceEnabled () const
 Returns true if logging level is lower than or equal to TraceLevel.
 
bool isDebugEnabled () const
 Returns true if logging level is lower than or equal to DebugLevel.
 
bool isInfoEnabled () const
 Returns true if logging level is lower than or equal to InfoLevel.
 
bool isWarnEnabled () const
 Returns true if logging level is lower than or equal to WarnLevel.
 
bool isErrorEnabled () const
 Returns true if logging level is lower than or equal to ErrorLevel.
 
bool isFatalEnabled () const
 Returns true if logging level is lower than or equal to FatalLevel.
 
Logger & operator= (const Logger &)
 

Static Public Member Functions

static Logger & instance (const QString &zone=QLatin1String(""))
 

Friends

class LoggerImpl
 

Detailed Description

Definition at line 59 of file QsLog.h.

Member Function Documentation

◆ addDestination()

void QsLogging::Logger::addDestination ( std::shared_ptr< Destination >  destination)

Adds a log message destination. Don't add null destinations.

Definition at line 108 of file QsLog.cpp.

◆ instance()

static Logger & QsLogging::Logger::instance ( const QString &  zone = QLatin1String(""))
inlinestatic

Definition at line 63 of file QsLog.h.

◆ isDebugEnabled()

bool QsLogging::Logger::isDebugEnabled ( ) const

Returns true if logging level is lower than or equal to DebugLevel.

Definition at line 136 of file QsLog.cpp.

◆ isErrorEnabled()

bool QsLogging::Logger::isErrorEnabled ( ) const

Returns true if logging level is lower than or equal to ErrorLevel.

Definition at line 151 of file QsLog.cpp.

◆ isFatalEnabled()

bool QsLogging::Logger::isFatalEnabled ( ) const

Returns true if logging level is lower than or equal to FatalLevel.

Definition at line 156 of file QsLog.cpp.

◆ isInfoEnabled()

bool QsLogging::Logger::isInfoEnabled ( ) const

Returns true if logging level is lower than or equal to InfoLevel.

Definition at line 141 of file QsLog.cpp.

◆ isLoggingEnabled()

bool QsLogging::Logger::isLoggingEnabled ( ) const

Returns true if logging level is lower than or equal to FatalLevel.

Definition at line 125 of file QsLog.cpp.

◆ isTraceEnabled()

bool QsLogging::Logger::isTraceEnabled ( ) const

Returns true if logging level is lower than or equal to TraceLevel.

Definition at line 131 of file QsLog.cpp.

◆ isWarnEnabled()

bool QsLogging::Logger::isWarnEnabled ( ) const

Returns true if logging level is lower than or equal to WarnLevel.

Definition at line 146 of file QsLog.cpp.

◆ loggingLevel()

Level QsLogging::Logger::loggingLevel ( ) const

The default level is INFO.

Definition at line 120 of file QsLog.cpp.

◆ operator=()

Logger & QsLogging::Logger::operator= ( const Logger &  )

◆ setLoggingLevel()

void QsLogging::Logger::setLoggingLevel ( Level  newLevel)

Logging at a level < 'newLevel' will be ignored.

Definition at line 115 of file QsLog.cpp.

◆ zone()

const QString & QsLogging::Logger::zone ( ) const

Definition at line 162 of file QsLog.cpp.

Friends And Related Symbol Documentation

◆ LoggerImpl

friend class LoggerImpl
friend

Definition at line 61 of file QsLog.h.


The documentation for this class was generated from the following files: