00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef LOG4QT_LOGGER_H
00031 #define LOG4QT_LOGGER_H
00032
00033
00034
00035
00036
00037
00038 #include <QtCore/QObject>
00039
00040 #include <QtCore/QAtomicPointer>
00041 #include <QtCore/QList>
00042 #include <QtCore/QReadWriteLock>
00043 #include "log4qt/helpers/logerror.h"
00044 #include "log4qt/helpers/classlogger.h"
00045 #include "log4qt/helpers/logobjectptr.h"
00046 #include "log4qt/level.h"
00047
00048 #if QT_VERSION >= QT_VERSION_CHECK(4, 4, 0)
00049 # ifndef Q_ATOMIC_POINTER_TEST_AND_SET_IS_ALWAYS_NATIVE
00050 # warning "QAtomicPointer test and set is not native. The macro Log4Qt::LOG4QT_DECLARE_STATIC_LOGGER is not thread-safe."
00051 # endif
00052 #endif
00053
00054
00055
00056
00057
00058
00059 namespace Log4Qt
00060 {
00061
00114 #if QT_VERSION < QT_VERSION_CHECK(4, 4, 0)
00115 #define LOG4QT_DECLARE_STATIC_LOGGER(FUNCTION, CLASS) \
00116 static Log4Qt::Logger *FUNCTION() \
00117 { \
00118 static Log4Qt::Logger *p_logger = 0; \
00119 if (!p_logger) \
00120 { \
00121 q_atomic_test_and_set_ptr( \
00122 &p_logger, \
00123 0, \
00124 Log4Qt::Logger::logger( #CLASS )); \
00125 } \
00126 return p_logger; \
00127 }
00128 #else
00129 #define LOG4QT_DECLARE_STATIC_LOGGER(FUNCTION, CLASS) \
00130 static Log4Qt::Logger *FUNCTION() \
00131 { \
00132 static QBasicAtomicPointer<Log4Qt::Logger > p_logger = \
00133 Q_BASIC_ATOMIC_INITIALIZER(0); \
00134 if (!p_logger) \
00135 { \
00136 p_logger.testAndSetOrdered(0, \
00137 Log4Qt::Logger::logger( #CLASS )); \
00138 } \
00139 return p_logger; \
00140 }
00141 #endif
00142
00197 #define LOG4QT_DECLARE_QCLASS_LOGGER \
00198 private: \
00199 mutable Log4Qt::ClassLogger mLog4QtClassLogger; \
00200 public: \
00201 inline Log4Qt::Logger *logger() const \
00202 { return mLog4QtClassLogger.logger(this); } \
00203 private:
00204
00205 class Appender;
00206 class LoggingEvent;
00207 class LoggerRepository;
00208
00223 class Logger : public QObject
00224 {
00225 Q_OBJECT
00226
00234 Q_PROPERTY(bool additivity READ additivity WRITE setAdditivity)
00235
00236
00242 Q_PROPERTY(Level level READ level WRITE setLevel)
00243
00249 Q_PROPERTY(LoggerRepository* loggerRepository READ loggerRepository)
00250
00256 Q_PROPERTY(QString name READ name)
00257
00263 Q_PROPERTY(Logger* parentLogger READ parentLogger)
00264
00265 LOG4QT_DECLARE_QCLASS_LOGGER
00266
00267 protected:
00268 Logger(LoggerRepository* pLoggerRepository, Level level, const QString &rName, Logger *pParent = 0);
00269 virtual ~Logger();
00270 private:
00271 Logger(const Logger &rOther);
00272 Logger &operator=(const Logger &rOther);
00273
00274 public:
00275 bool additivity() const;
00276 QList<Appender*> appenders() const;
00277 Level level() const;
00278 LoggerRepository *loggerRepository() const;
00279 QString name() const;
00280 Logger *parentLogger() const;
00281
00282
00283 void setAdditivity(bool additivity);
00284 virtual void setLevel(Level level);
00285
00286 void addAppender(Appender *pAppender);
00287 Appender *appender(const QString &rName) const;
00288 void callAppenders(const LoggingEvent &rEvent) const;
00289 bool isAttached(Appender *pAppender) const;
00290
00301 void removeAllAppenders();
00302
00303 void removeAppender(Appender *pAppender);
00304 void removeAppender(const QString &rName);
00305
00306
00307 Level effectiveLevel() const;
00308 bool isDebugEnabled() const;
00309
00321 bool isEnabledFor(Level level) const;
00322
00323 bool isErrorEnabled() const;
00324 bool isFatalEnabled() const;
00325 bool isInfoEnabled() const;
00326 bool isTraceEnabled() const;
00327 bool isWarnEnabled() const;
00328
00329 void debug(const QString &rMessage) const;
00330 void debug(const LogError &rLogError) const;
00331 void debug(const char *pMessage) const;
00332 void debug(const char *pMessage,
00333 const QString &rArg1) const;
00334 void debug(const char *pMessage,
00335 int arg1) const;
00336 void debug(const char *pMessage,
00337 const QString &rArg1,
00338 const QString &rArg2) const;
00339 void debug(const char *pMessage,
00340 const QString &rArg1,
00341 int arg2) const;
00342 void debug(const char *pMessage,
00343 int arg1,
00344 const QString &rArg2) const;
00345 void debug(const char *pMessage,
00346 int arg1,
00347 int arg2) const;
00348 void debug(const char *pMessage,
00349 const QString &rArg1,
00350 const QString &rArg2,
00351 const QString &rArg3) const;
00352 void debug(const char *pMessage,
00353 const QString &rArg1,
00354 const QString &rArg2,
00355 int arg3) const;
00356 void debug(const char *pMessage,
00357 const QString &rArg1,
00358 int arg2,
00359 const QString &rArg3) const;
00360 void debug(const char *pMessage,
00361 const QString &rArg1,
00362 int arg2,
00363 int arg3) const;
00364 void debug(const char *pMessage,
00365 int arg1,
00366 const QString &rArg2,
00367 const QString &rArg3) const;
00368 void debug(const char *pMessage,
00369 int arg1,
00370 const QString &rArg2,
00371 int arg3) const;
00372 void debug(const char *pMessage,
00373 int arg1,
00374 int arg2,
00375 const QString &rArg3) const;
00376 void debug(const char *pMessage,
00377 int arg1,
00378 int arg2,
00379 int arg3) const;
00380 void debug(const char *pMessage,
00381 const QVariant &rArg1,
00382 const QVariant &rArg2,
00383 const QVariant &rArg3) const;
00384
00385 void error(const QString &rMessage) const;
00386 void error(const LogError &rLogError) const;
00387 void error(const char *pMessage) const;
00388 void error(const char *pMessage,
00389 const QString &rArg1) const;
00390 void error(const char *pMessage,
00391 int arg1) const;
00392 void error(const char *pMessage,
00393 const QString &rArg1,
00394 const QString &rArg2) const;
00395 void error(const char *pMessage,
00396 const QString &rArg1, int arg2) const;
00397 void error(const char *pMessage,
00398 int arg1,
00399 const QString &rArg2) const;
00400 void error(const char *pMessage,
00401 int arg1,
00402 int arg2) const;
00403 void error(const char *pMessage,
00404 const QString &rArg1,
00405 const QString &rArg2,
00406 const QString &rArg3) const;
00407 void error(const char *pMessage,
00408 const QString &rArg1,
00409 const QString &rArg2,
00410 int arg3) const;
00411 void error(const char *pMessage,
00412 const QString &rArg1,
00413 int arg2,
00414 const QString &rArg3) const;
00415 void error(const char *pMessage,
00416 const QString &rArg1,
00417 int arg2,
00418 int arg3) const;
00419 void error(const char *pMessage,
00420 int arg1,
00421 const QString &rArg2,
00422 const QString &rArg3) const;
00423 void error(const char *pMessage,
00424 int arg1,
00425 const QString &rArg2,
00426 int arg3) const;
00427 void error(const char *pMessage,
00428 int arg1,
00429 int arg2,
00430 const QString &rArg3) const;
00431 void error(const char *pMessage,
00432 int arg1,
00433 int arg2,
00434 int arg3) const;
00435 void error(const char *pMessage,
00436 const QVariant &rArg1,
00437 const QVariant &rArg2,
00438 const QVariant &rArg3) const;
00439
00440 void fatal(const QString &rMessage) const;
00441 void fatal(const LogError &rLogError) const;
00442 void fatal(const char *pMessage) const;
00443 void fatal(const char *pMessage,
00444 const QString &rArg1) const;
00445 void fatal(const char *pMessage,
00446 int arg1) const;
00447 void fatal(const char *pMessage,
00448 const QString &rArg1,
00449 const QString &rArg2) const;
00450 void fatal(const char *pMessage,
00451 const QString &rArg1,
00452 int arg2) const;
00453 void fatal(const char *pMessage,
00454 int arg1,
00455 const QString &rArg2) const;
00456 void fatal(const char *pMessage,
00457 int arg1,
00458 int arg2) const;
00459 void fatal(const char *pMessage,
00460 const QString &rArg1,
00461 const QString &rArg2,
00462 const QString &rArg3) const;
00463 void fatal(const char *pMessage,
00464 const QString &rArg1,
00465 const QString &rArg2,
00466 int arg3) const;
00467 void fatal(const char *pMessage,
00468 const QString &rArg1,
00469 int arg2,
00470 const QString &rArg3) const;
00471 void fatal(const char *pMessage,
00472 const QString &rArg1,
00473 int arg2,
00474 int arg3) const;
00475 void fatal(const char *pMessage,
00476 int arg1,
00477 const QString &rArg2,
00478 const QString &rArg3) const;
00479 void fatal(const char *pMessage,
00480 int arg1,
00481 const QString &rArg2,
00482 int arg3) const;
00483 void fatal(const char *pMessage,
00484 int arg1,
00485 int arg2,
00486 const QString &rArg3) const;
00487 void fatal(const char *pMessage,
00488 int arg1,
00489 int arg2,
00490 int arg3) const;
00491 void fatal(const char *pMessage,
00492 const QVariant &rArg1,
00493 const QVariant &rArg2,
00494 const QVariant &rArg3) const;
00495
00496 void info(const QString &rMessage) const;
00497 void info(const LogError &rLogError) const;
00498 void info(const char *pMessage) const;
00499 void info(const char *pMessage,
00500 const QString &rArg1) const;
00501 void info(const char *pMessage,
00502 int arg1) const;
00503 void info(const char *pMessage,
00504 const QString &rArg1,
00505 const QString &rArg2) const;
00506 void info(const char *pMessage,
00507 const QString &rArg1,
00508 int arg2) const;
00509 void info(const char *pMessage,
00510 int arg1,
00511 const QString &rArg2) const;
00512 void info(const char *pMessage,
00513 int arg1,
00514 int arg2) const;
00515 void info(const char *pMessage,
00516 const QString &rArg1,
00517 const QString &rArg2,
00518 const QString &rArg3) const;
00519 void info(const char *pMessage,
00520 const QString &rArg1,
00521 const QString &rArg2,
00522 int arg3) const;
00523 void info(const char *pMessage,
00524 const QString &rArg1,
00525 int arg2,
00526 const QString &rArg3) const;
00527 void info(const char *pMessage,
00528 const QString &rArg1,
00529 int arg2,
00530 int arg3) const;
00531 void info(const char *pMessage,
00532 int arg1,
00533 const QString &rArg2,
00534 const QString &rArg3) const;
00535 void info(const char *pMessage,
00536 int arg1,
00537 const QString &rArg2,
00538 int arg3) const;
00539 void info(const char *pMessage,
00540 int arg1,
00541 int arg2,
00542 const QString &rArg3) const;
00543 void info(const char *pMessage,
00544 int arg1,
00545 int arg2,
00546 int arg3) const;
00547 void info(const char *pMessage,
00548 const QVariant &rArg1,
00549 const QVariant &rArg2,
00550 const QVariant &rArg3) const;
00551
00552 void log(Level level,
00553 const QString &rMessage) const;
00554 void log(Level level,
00555 const LogError &rLogError) const;
00556 void log(Level level,
00557 const char *pMessage) const;
00558 void log(Level level,
00559 const char *pMessage,
00560 const QString &rArg1) const;
00561 void log(Level level,
00562 const char *pMessage,
00563 int arg1) const;
00564 void log(Level level,
00565 const char *pMessage,
00566 const QString &rArg1,
00567 const QString &rArg2) const;
00568 void log(Level level,
00569 const char *pMessage,
00570 const QString &rArg1,
00571 int arg2) const;
00572 void log(Level level,
00573 const char *pMessage,
00574 int arg1,
00575 const QString &rArg2) const;
00576 void log(Level level,
00577 const char *pMessage,
00578 int arg1,
00579 int arg2) const;
00580 void log(Level level,
00581 const char *pMessage,
00582 const QString &rArg1,
00583 const QString &rArg2,
00584 const QString &rArg3) const;
00585 void log(Level level,
00586 const char *pMessage,
00587 const QString &rArg1,
00588 const QString &rArg2,
00589 int arg3) const;
00590 void log(Level level,
00591 const char *pMessage,
00592 const QString &rArg1,
00593 int arg2,
00594 const QString &rArg3) const;
00595 void log(Level level,
00596 const char *pMessage,
00597 const QString &rArg1,
00598 int arg2,
00599 int arg3) const;
00600 void log(Level level,
00601 const char *pMessage,
00602 int arg1,
00603 const QString &rArg2,
00604 const QString &rArg3) const;
00605 void log(Level level,
00606 const char *pMessage,
00607 int arg1,
00608 const QString &rArg2,
00609 int arg3) const;
00610 void log(Level level,
00611 const char *pMessage,
00612 int arg1,
00613 int arg2,
00614 const QString &rArg3) const;
00615 void log(Level level,
00616 const char *pMessage,
00617 int arg1,
00618 int arg2,
00619 int arg3) const;
00620 void log(Level level,
00621 const char *pMessage,
00622 const QVariant &rArg1,
00623 const QVariant &rArg2,
00624 const QVariant &rArg3) const;
00625
00626
00627
00628
00629
00630
00631
00632 void trace(const QString &rMessage) const;
00633 void trace(const LogError &rLogError) const;
00634 void trace(const char *pMessage) const;
00635 void trace(const char *pMessage,
00636 const QString &rArg1) const;
00637 void trace(const char *pMessage,
00638 int arg1) const;
00639 void trace(const char *pMessage,
00640 const QString &rArg1,
00641 const QString &rArg2) const;
00642 void trace(const char *pMessage,
00643 const QString &rArg1,
00644 int arg2) const;
00645 void trace(const char *pMessage,
00646 int arg1,
00647 const QString &rArg2) const;
00648 void trace(const char *pMessage,
00649 int arg1,
00650 int arg2) const;
00651 void trace(const char *pMessage,
00652 const QString &rArg1,
00653 const QString &rArg2,
00654 const QString &rArg3) const;
00655 void trace(const char *pMessage,
00656 const QString &rArg1,
00657 const QString &rArg2,
00658 int arg3) const;
00659 void trace(const char *pMessage,
00660 const QString &rArg1,
00661 int arg2,
00662 const QString &rArg3) const;
00663 void trace(const char *pMessage,
00664 const QString &rArg1,
00665 int arg2,
00666 int arg3) const;
00667 void trace(const char *pMessage,
00668 int arg1,
00669 const QString &rArg2,
00670 const QString &rArg3) const;
00671 void trace(const char *pMessage,
00672 int arg1,
00673 const QString &rArg2,
00674 int arg3) const;
00675 void trace(const char *pMessage,
00676 int arg1,
00677 int arg2,
00678 const QString &rArg3) const;
00679 void trace(const char *pMessage,
00680 int arg1,
00681 int arg2,
00682 int arg3) const;
00683 void trace(const char *pMessage,
00684 const QVariant &rArg1,
00685 const QVariant &rArg2,
00686 const QVariant &rArg3) const;
00687
00688 void warn(const QString &rMessage) const;
00689 void warn(const LogError &rLogError) const;
00690 void warn(const char *pMessage) const;
00691 void warn(const char *pMessage,
00692 const QString &rArg1) const;
00693 void warn(const char *pMessage,
00694 int arg1) const;
00695 void warn(const char *pMessage,
00696 const QString &rArg1,
00697 const QString &rArg2) const;
00698 void warn(const char *pMessage,
00699 const QString &rArg1,
00700 int arg2) const;
00701 void warn(const char *pMessage,
00702 int arg1,
00703 const QString &rArg2) const;
00704 void warn(const char *pMessage,
00705 int arg1,
00706 int arg2) const;
00707 void warn(const char *pMessage,
00708 const QString &rArg1,
00709 const QString &rArg2,
00710 const QString &rArg3) const;
00711 void warn(const char *pMessage,
00712 const QString &rArg1,
00713 const QString &rArg2,
00714 int arg3) const;
00715 void warn(const char *pMessage,
00716 const QString &rArg1,
00717 int arg2,
00718 const QString &rArg3) const;
00719 void warn(const char *pMessage,
00720 const QString &rArg1,
00721 int arg2,
00722 int arg3) const;
00723 void warn(const char *pMessage,
00724 int arg1,
00725 const QString &rArg2,
00726 const QString &rArg3) const;
00727 void warn(const char *pMessage,
00728 int arg1,
00729 const QString &rArg2,
00730 int arg3) const;
00731 void warn(const char *pMessage,
00732 int arg1,
00733 int arg2,
00734 const QString &rArg3) const;
00735 void warn(const char *pMessage,
00736 int arg1,
00737 int arg2,
00738 int arg3) const;
00739 void warn(const char *pMessage,
00740 const QVariant &rArg1,
00741 const QVariant &rArg2,
00742 const QVariant &rArg3) const;
00743
00744
00745 static Logger *logger(const QString &rName);
00746 static Logger *logger(const char *pName);
00747 static Logger *rootLogger();
00748
00749 protected:
00750 #ifndef QT_NO_DEBUG_STREAM
00751
00761 virtual QDebug debug(QDebug &rDebug) const;
00762 friend QDebug operator<<(QDebug debug,
00763 const Logger &rLogger);
00764 #endif // QT_NO_DEBUG_STREAM
00765
00766 void forcedLog(Level level,
00767 const QString &rMessage) const;
00768
00769 protected:
00770 mutable QReadWriteLock mObjectGuard;
00771 private:
00772 const QString mName;
00773 LoggerRepository* mpLoggerRepository;
00774 volatile bool mAdditivity;
00775 QList< LogObjectPtr<Appender> > mAppenders;
00776 Level mLevel;
00777 Logger *mpParent;
00778
00779
00780 friend class Hierarchy;
00781 };
00782
00783
00784
00785
00786
00787
00788 #ifndef QT_NO_DEBUG_STREAM
00789
00800 QDebug operator<<(QDebug debug,
00801 const Logger &rLogger);
00802 #endif // QT_NO_DEBUG_STREAM
00803
00804
00805
00806
00807
00808
00809 inline bool Logger::additivity() const
00810 {
00811 return mAdditivity; }
00812
00813 inline Level Logger::level() const
00814 {
00815 return mLevel; }
00816
00817 inline LoggerRepository *Logger::loggerRepository() const
00818 {
00819 return mpLoggerRepository; }
00820
00821 inline QString Logger::name() const
00822 {
00823 return mName; }
00824
00825 inline Logger *Logger::parentLogger() const
00826 {
00827 return mpParent; }
00828
00829 inline void Logger::setAdditivity(bool additivity)
00830 {
00831 mAdditivity = additivity; }
00832
00833
00834
00835 inline bool Logger::isDebugEnabled() const
00836 { return isEnabledFor(Level::DEBUG_INT); }
00837
00838 inline bool Logger::isErrorEnabled() const
00839 { return isEnabledFor(Level::ERROR_INT); }
00840
00841 inline bool Logger::isFatalEnabled() const
00842 { return isEnabledFor(Level::FATAL_INT); }
00843
00844 inline bool Logger::isInfoEnabled() const
00845 { return isEnabledFor(Level::INFO_INT); }
00846
00847 inline bool Logger::isTraceEnabled() const
00848 { return isEnabledFor(Level::TRACE_INT); }
00849
00850 inline bool Logger::isWarnEnabled() const
00851 { return isEnabledFor(Level::WARN_INT); }
00852
00853
00854
00855 inline void Logger::debug(const LogError &rLogError) const
00856 { if (isEnabledFor(Level::DEBUG_INT))
00857 forcedLog(Level::DEBUG_INT, rLogError.toString()); }
00858
00859 inline void Logger::debug(const QString &rMessage) const
00860 { if (isEnabledFor(Level::DEBUG_INT))
00861 forcedLog(Level::DEBUG_INT, rMessage); }
00862
00863 inline void Logger::debug(const char *pMessage) const
00864 { if (isEnabledFor(Level::DEBUG_INT))
00865 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage)); }
00866
00867 inline void Logger::debug(const char *pMessage,
00868 const QString &rArg1) const
00869 { if (isEnabledFor(Level::DEBUG_INT))
00870 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(rArg1)); }
00871
00872 inline void Logger::debug(const char *pMessage,
00873 int arg1) const
00874 { if (isEnabledFor(Level::DEBUG_INT))
00875 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(arg1)); }
00876
00877 inline void Logger::debug(const char *pMessage,
00878 const QString &rArg1,
00879 const QString &rArg2) const
00880 { if (isEnabledFor(Level::DEBUG_INT))
00881 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2)); }
00882
00883 inline void Logger::debug(const char *pMessage,
00884 const QString &rArg1,
00885 int arg2) const
00886 { if (isEnabledFor(Level::DEBUG_INT))
00887 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2)); }
00888
00889 inline void Logger::debug(const char *pMessage,
00890 int arg1,
00891 const QString &rArg2) const
00892 { if (isEnabledFor(Level::DEBUG_INT))
00893 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2)); }
00894
00895 inline void Logger::debug(const char *pMessage,
00896 int arg1,
00897 int arg2) const
00898 { if (isEnabledFor(Level::DEBUG_INT))
00899 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2)); }
00900
00901 inline void Logger::debug(const char *pMessage,
00902 const QString &rArg1,
00903 const QString &rArg2,
00904 const QString &rArg3) const
00905 { if (isEnabledFor(Level::DEBUG_INT))
00906 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2, rArg3)); }
00907
00908 inline void Logger::debug(const char *pMessage,
00909 const QString &rArg1,
00910 const QString &rArg2,
00911 int arg3) const
00912 { if (isEnabledFor(Level::DEBUG_INT))
00913 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2).arg(arg3)); }
00914
00915 inline void Logger::debug(const char *pMessage,
00916 const QString &rArg1,
00917 int arg2,
00918 const QString &rArg3) const
00919 { if (isEnabledFor(Level::DEBUG_INT))
00920 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(rArg3)); }
00921
00922 inline void Logger::debug(const char *pMessage,
00923 const QString &rArg1,
00924 int arg2,
00925 int arg3) const
00926 { if (isEnabledFor(Level::DEBUG_INT))
00927 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(arg3)); }
00928
00929 inline void Logger::debug(const char *pMessage,
00930 int arg1,
00931 const QString &rArg2,
00932 const QString &rArg3) const
00933 { if (isEnabledFor(Level::DEBUG_INT))
00934 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(rArg3)); }
00935
00936 inline void Logger::debug(const char *pMessage,
00937 int arg1,
00938 const QString &rArg2,
00939 int arg3) const
00940 { if (isEnabledFor(Level::DEBUG_INT))
00941 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(arg3)); }
00942
00943 inline void Logger::debug(const char *pMessage,
00944 int arg1,
00945 int arg2,
00946 const QString &rArg3) const
00947 { if (isEnabledFor(Level::DEBUG_INT))
00948 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(rArg3)); }
00949
00950 inline void Logger::debug(const char *pMessage,
00951 int arg1,
00952 int arg2,
00953 int arg3) const
00954 { if (isEnabledFor(Level::DEBUG_INT))
00955 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(arg3)); }
00956
00957 inline void Logger::debug(const char *pMessage,
00958 const QVariant &rArg1,
00959 const QVariant &rArg2,
00960 const QVariant &rArg3) const
00961 { if (isEnabledFor(Level::DEBUG_INT))
00962 forcedLog(Level::DEBUG_INT, QString::fromUtf8(pMessage).arg(rArg1.toString(), rArg2.toString(), rArg3.toString())); }
00963
00964
00965
00966 inline void Logger::error(const QString &rMessage) const
00967 { if (isEnabledFor(Level::ERROR_INT))
00968 forcedLog(Level::ERROR_INT, rMessage); }
00969
00970 inline void Logger::error(const LogError &rLogError) const
00971 { if (isEnabledFor(Level::ERROR_INT))
00972 forcedLog(Level::ERROR_INT, rLogError.toString()); }
00973
00974 inline void Logger::error(const char *pMessage) const
00975 { if (isEnabledFor(Level::ERROR_INT))
00976 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage)); }
00977
00978 inline void Logger::error(const char *pMessage,
00979 const QString &rArg1) const
00980 { if (isEnabledFor(Level::ERROR_INT))
00981 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(rArg1)); }
00982
00983 inline void Logger::error(const char *pMessage,
00984 int arg1) const
00985 { if (isEnabledFor(Level::ERROR_INT))
00986 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(arg1)); }
00987
00988 inline void Logger::error(const char *pMessage,
00989 const QString &rArg1,
00990 const QString &rArg2) const
00991 { if (isEnabledFor(Level::ERROR_INT))
00992 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2)); }
00993
00994 inline void Logger::error(const char *pMessage,
00995 const QString &rArg1,
00996 int arg2) const
00997 { if (isEnabledFor(Level::ERROR_INT))
00998 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2)); }
00999
01000 inline void Logger::error(const char *pMessage,
01001 int arg1,
01002 const QString &rArg2) const
01003 { if (isEnabledFor(Level::ERROR_INT))
01004 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2)); }
01005
01006 inline void Logger::error(const char *pMessage,
01007 int arg1,
01008 int arg2) const
01009 { if (isEnabledFor(Level::ERROR_INT))
01010 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2)); }
01011
01012 inline void Logger::error(const char *pMessage,
01013 const QString &rArg1,
01014 const QString &rArg2,
01015 const QString &rArg3) const
01016 { if (isEnabledFor(Level::ERROR_INT))
01017 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2, rArg3)); }
01018
01019 inline void Logger::error(const char *pMessage,
01020 const QString &rArg1,
01021 const QString &rArg2,
01022 int arg3) const
01023 { if (isEnabledFor(Level::ERROR_INT))
01024 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2).arg(arg3)); }
01025
01026 inline void Logger::error(const char *pMessage,
01027 const QString &rArg1,
01028 int arg2,
01029 const QString &rArg3) const
01030 { if (isEnabledFor(Level::ERROR_INT))
01031 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(rArg3)); }
01032
01033 inline void Logger::error(const char *pMessage,
01034 const QString &rArg1,
01035 int arg2,
01036 int arg3) const
01037 { if (isEnabledFor(Level::ERROR_INT))
01038 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(arg3)); }
01039
01040 inline void Logger::error(const char *pMessage,
01041 int arg1,
01042 const QString &rArg2,
01043 const QString &rArg3) const
01044 { if (isEnabledFor(Level::ERROR_INT))
01045 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(rArg3)); }
01046
01047 inline void Logger::error(const char *pMessage,
01048 int arg1,
01049 const QString &rArg2,
01050 int arg3) const
01051 { if (isEnabledFor(Level::ERROR_INT))
01052 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(arg3)); }
01053
01054 inline void Logger::error(const char *pMessage,
01055 int arg1,
01056 int arg2,
01057 const QString &rArg3) const
01058 { if (isEnabledFor(Level::ERROR_INT))
01059 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(rArg3)); }
01060
01061 inline void Logger::error(const char *pMessage,
01062 int arg1,
01063 int arg2,
01064 int arg3) const
01065 { if (isEnabledFor(Level::ERROR_INT))
01066 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(arg3)); }
01067
01068 inline void Logger::error(const char *pMessage,
01069 const QVariant &rArg1,
01070 const QVariant &rArg2,
01071 const QVariant &rArg3) const
01072 { if (isEnabledFor(Level::ERROR_INT))
01073 forcedLog(Level::ERROR_INT, QString::fromUtf8(pMessage).arg(rArg1.toString(), rArg2.toString(), rArg3.toString())); }
01074
01075
01076
01077 inline void Logger::fatal(const QString &rMessage) const
01078 { if (isEnabledFor(Level::FATAL_INT))
01079 forcedLog(Level::FATAL_INT, rMessage); }
01080
01081 inline void Logger::fatal(const LogError &rLogError) const
01082 { if (isEnabledFor(Level::FATAL_INT))
01083 forcedLog(Level::FATAL_INT, rLogError.toString()); }
01084
01085 inline void Logger::fatal(const char *pMessage) const
01086 { if (isEnabledFor(Level::FATAL_INT))
01087 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage)); }
01088
01089 inline void Logger::fatal(const char *pMessage,
01090 const QString &rArg1) const
01091 { if (isEnabledFor(Level::FATAL_INT))
01092 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(rArg1)); }
01093
01094 inline void Logger::fatal(const char *pMessage,
01095 int arg1) const
01096 { if (isEnabledFor(Level::FATAL_INT))
01097 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(arg1)); }
01098
01099 inline void Logger::fatal(const char *pMessage,
01100 const QString &rArg1, const QString &rArg2) const
01101 { if (isEnabledFor(Level::FATAL_INT))
01102 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2)); }
01103
01104 inline void Logger::fatal(const char *pMessage,
01105 const QString &rArg1, int arg2) const
01106 { if (isEnabledFor(Level::FATAL_INT))
01107 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2)); }
01108
01109 inline void Logger::fatal(const char *pMessage,
01110 int arg1,
01111 const QString &rArg2) const
01112 { if (isEnabledFor(Level::FATAL_INT))
01113 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2)); }
01114
01115 inline void Logger::fatal(const char *pMessage,
01116 int arg1,
01117 int arg2) const
01118 { if (isEnabledFor(Level::FATAL_INT))
01119 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2)); }
01120
01121 inline void Logger::fatal(const char *pMessage,
01122 const QString &rArg1,
01123 const QString &rArg2,
01124 const QString &rArg3) const
01125 { if (isEnabledFor(Level::FATAL_INT))
01126 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2, rArg3)); }
01127
01128 inline void Logger::fatal(const char *pMessage,
01129 const QString &rArg1,
01130 const QString &rArg2,
01131 int arg3) const
01132 { if (isEnabledFor(Level::FATAL_INT))
01133 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2).arg(arg3)); }
01134
01135 inline void Logger::fatal(const char *pMessage,
01136 const QString &rArg1,
01137 int arg2,
01138 const QString &rArg3) const
01139 { if (isEnabledFor(Level::FATAL_INT))
01140 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(rArg3)); }
01141
01142 inline void Logger::fatal(const char *pMessage,
01143 const QString &rArg1,
01144 int arg2,
01145 int arg3) const
01146 { if (isEnabledFor(Level::FATAL_INT))
01147 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(arg3)); }
01148
01149 inline void Logger::fatal(const char *pMessage,
01150 int arg1,
01151 const QString &rArg2,
01152 const QString &rArg3) const
01153 { if (isEnabledFor(Level::FATAL_INT))
01154 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(rArg3)); }
01155
01156 inline void Logger::fatal(const char *pMessage,
01157 int arg1,
01158 const QString &rArg2,
01159 int arg3) const
01160 { if (isEnabledFor(Level::FATAL_INT))
01161 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(arg3)); }
01162
01163 inline void Logger::fatal(const char *pMessage,
01164 int arg1,
01165 int arg2,
01166 const QString &rArg3) const
01167 { if (isEnabledFor(Level::FATAL_INT))
01168 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(rArg3)); }
01169
01170 inline void Logger::fatal(const char *pMessage,
01171 int arg1,
01172 int arg2,
01173 int arg3) const
01174 { if (isEnabledFor(Level::FATAL_INT))
01175 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(arg3)); }
01176
01177 inline void Logger::fatal(const char *pMessage,
01178 const QVariant &rArg1,
01179 const QVariant &rArg2,
01180 const QVariant &rArg3) const
01181 { if (isEnabledFor(Level::FATAL_INT))
01182 forcedLog(Level::FATAL_INT, QString::fromUtf8(pMessage).arg(rArg1.toString(), rArg2.toString(), rArg3.toString())); }
01183
01184
01185
01186 inline void Logger::info(const QString &rMessage) const
01187 { if (isEnabledFor(Level::INFO_INT))
01188 forcedLog(Level::INFO_INT, rMessage); }
01189
01190 inline void Logger::info(const LogError &rLogError) const
01191 { if (isEnabledFor(Level::INFO_INT))
01192 forcedLog(Level::INFO_INT, rLogError.toString()); }
01193
01194 inline void Logger::info(const char *pMessage) const
01195 { if (isEnabledFor(Level::INFO_INT))
01196 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage)); }
01197
01198 inline void Logger::info(const char *pMessage,
01199 const QString &rArg1) const
01200 { if (isEnabledFor(Level::INFO_INT))
01201 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(rArg1)); }
01202
01203 inline void Logger::info(const char *pMessage,
01204 int arg1) const
01205 { if (isEnabledFor(Level::INFO_INT))
01206 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(arg1)); }
01207
01208 inline void Logger::info(const char *pMessage,
01209 const QString &rArg1,
01210 const QString &rArg2) const
01211 { if (isEnabledFor(Level::INFO_INT))
01212 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2)); }
01213
01214 inline void Logger::info(const char *pMessage,
01215 const QString &rArg1,
01216 int arg2) const
01217 { if (isEnabledFor(Level::INFO_INT))
01218 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2)); }
01219
01220 inline void Logger::info(const char *pMessage,
01221 int arg1,
01222 const QString &rArg2) const
01223 { if (isEnabledFor(Level::INFO_INT))
01224 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2)); }
01225
01226 inline void Logger::info(const char *pMessage,
01227 int arg1,
01228 int arg2) const
01229 { if (isEnabledFor(Level::INFO_INT))
01230 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2)); }
01231
01232 inline void Logger::info(const char *pMessage,
01233 const QString &rArg1,
01234 const QString &rArg2,
01235 const QString &rArg3) const
01236 { if (isEnabledFor(Level::INFO_INT))
01237 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2, rArg3)); }
01238
01239 inline void Logger::info(const char *pMessage,
01240 const QString &rArg1,
01241 const QString &rArg2,
01242 int arg3) const
01243 { if (isEnabledFor(Level::INFO_INT))
01244 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2).arg(arg3)); }
01245
01246 inline void Logger::info(const char *pMessage,
01247 const QString &rArg1,
01248 int arg2,
01249 const QString &rArg3) const
01250 { if (isEnabledFor(Level::INFO_INT))
01251 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(rArg3)); }
01252
01253 inline void Logger::info(const char *pMessage,
01254 const QString &rArg1,
01255 int arg2,
01256 int arg3) const
01257 { if (isEnabledFor(Level::INFO_INT))
01258 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(arg3)); }
01259
01260 inline void Logger::info(const char *pMessage,
01261 int arg1,
01262 const QString &rArg2,
01263 const QString &rArg3) const
01264 { if (isEnabledFor(Level::INFO_INT))
01265 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(rArg3)); }
01266
01267 inline void Logger::info(const char *pMessage,
01268 int arg1,
01269 const QString &rArg2,
01270 int arg3) const
01271 { if (isEnabledFor(Level::INFO_INT))
01272 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(arg3)); }
01273
01274 inline void Logger::info(const char *pMessage,
01275 int arg1,
01276 int arg2,
01277 const QString &rArg3) const
01278 { if (isEnabledFor(Level::INFO_INT))
01279 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(rArg3)); }
01280
01281 inline void Logger::info(const char *pMessage,
01282 int arg1,
01283 int arg2,
01284 int arg3) const
01285 { if (isEnabledFor(Level::INFO_INT))
01286 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(arg3)); }
01287
01288 inline void Logger::info(const char *pMessage,
01289 const QVariant &rArg1,
01290 const QVariant &rArg2,
01291 const QVariant &rArg3) const
01292 { if (isEnabledFor(Level::INFO_INT))
01293 forcedLog(Level::INFO_INT, QString::fromUtf8(pMessage).arg(rArg1.toString(), rArg2.toString(), rArg3.toString())); }
01294
01295
01296
01297 inline void Logger::log(Level level,
01298 const QString &rMessage) const
01299 { if (isEnabledFor(level))
01300 forcedLog(level, rMessage); }
01301
01302 inline void Logger::log(Level level,
01303 const LogError &rLogError) const
01304 { if (isEnabledFor(level))
01305 forcedLog(level, rLogError.toString()); }
01306
01307 inline void Logger::log(Level level,
01308 const char *pMessage) const
01309 { if (isEnabledFor(level))
01310 forcedLog(level, QString::fromUtf8(pMessage)); }
01311
01312 inline void Logger::log(Level level,
01313 const char *pMessage,
01314 const QString &rArg1) const
01315 { if (isEnabledFor(level))
01316 forcedLog(level, QString::fromUtf8(pMessage).arg(rArg1)); }
01317
01318 inline void Logger::log(Level level,
01319 const char *pMessage,
01320 int arg1) const
01321 { if (isEnabledFor(level))
01322 forcedLog(level, QString::fromUtf8(pMessage).arg(arg1)); }
01323
01324 inline void Logger::log(Level level,
01325 const char *pMessage,
01326 const QString &rArg1,
01327 const QString &rArg2) const
01328 { if (isEnabledFor(level))
01329 forcedLog(level, QString::fromUtf8(pMessage).arg(rArg1, rArg2)); }
01330
01331 inline void Logger::log(Level level,
01332 const char *pMessage,
01333 const QString &rArg1, int arg2) const
01334 { if (isEnabledFor(level))
01335 forcedLog(level, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2)); }
01336
01337 inline void Logger::log(Level level,
01338 const char *pMessage,
01339 int arg1,
01340 const QString &rArg2) const
01341 { if (isEnabledFor(level))
01342 forcedLog(level, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2)); }
01343
01344 inline void Logger::log(Level level,
01345 const char *pMessage,
01346 int arg1,
01347 int arg2) const
01348 { if (isEnabledFor(level))
01349 forcedLog(level, QString::fromUtf8(pMessage).arg(arg1).arg(arg2)); }
01350
01351 inline void Logger::log(Level level,
01352 const char *pMessage,
01353 const QString &rArg1,
01354 const QString &rArg2,
01355 const QString &rArg3) const
01356 { if (isEnabledFor(level))
01357 forcedLog(level, QString::fromUtf8(pMessage).arg(rArg1, rArg2, rArg3)); }
01358
01359 inline void Logger::log(Level level,
01360 const char *pMessage,
01361 const QString &rArg1,
01362 const QString &rArg2,
01363 int arg3) const
01364 { if (isEnabledFor(level))
01365 forcedLog(level, QString::fromUtf8(pMessage).arg(rArg1, rArg2).arg(arg3)); }
01366
01367 inline void Logger::log(Level level,
01368 const char *pMessage,
01369 const QString &rArg1,
01370 int arg2,
01371 const QString &rArg3) const
01372 { if (isEnabledFor(level))
01373 forcedLog(level, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(rArg3)); }
01374
01375 inline void Logger::log(Level level,
01376 const char *pMessage,
01377 const QString &rArg1,
01378 int arg2,
01379 int arg3) const
01380 { if (isEnabledFor(level))
01381 forcedLog(level, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(arg3)); }
01382
01383 inline void Logger::log(Level level,
01384 const char *pMessage,
01385 int arg1,
01386 const QString &rArg2,
01387 const QString &rArg3) const
01388 { if (isEnabledFor(level))
01389 forcedLog(level, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(rArg3)); }
01390
01391 inline void Logger::log(Level level,
01392 const char *pMessage,
01393 int arg1,
01394 const QString &rArg2,
01395 int arg3) const
01396 { if (isEnabledFor(level))
01397 forcedLog(level, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(arg3)); }
01398
01399 inline void Logger::log(Level level,
01400 const char *pMessage,
01401 int arg1,
01402 int arg2,
01403 const QString &rArg3) const
01404 { if (isEnabledFor(level))
01405 forcedLog(level, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(rArg3)); }
01406
01407 inline void Logger::log(Level level,
01408 const char *pMessage,
01409 int arg1,
01410 int arg2,
01411 int arg3) const
01412 { if (isEnabledFor(level))
01413 forcedLog(level, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(arg3)); }
01414
01415 inline void Logger::log(Level level,
01416 const char *pMessage,
01417 const QVariant &rArg1,
01418 const QVariant &rArg2,
01419 const QVariant &rArg3) const
01420 { if (isEnabledFor(level))
01421 forcedLog(level, QString::fromUtf8(pMessage).arg(rArg1.toString(), rArg2.toString(), rArg3.toString())); }
01422
01423
01424
01425 inline void Logger::trace(const QString &rMessage) const
01426 { if (isEnabledFor(Level::TRACE_INT))
01427 forcedLog(Level::TRACE_INT, rMessage); }
01428
01429 inline void Logger::trace(const LogError &rLogError) const
01430 { if (isEnabledFor(Level::TRACE_INT))
01431 forcedLog(Level::TRACE_INT, rLogError.toString()); }
01432
01433 inline void Logger::trace(const char *pMessage) const
01434 { if (isEnabledFor(Level::TRACE_INT))
01435 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage)); }
01436
01437 inline void Logger::trace(const char *pMessage,
01438 const QString &rArg1) const
01439 { if (isEnabledFor(Level::TRACE_INT))
01440 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(rArg1)); }
01441
01442 inline void Logger::trace(const char *pMessage,
01443 int arg1) const
01444 { if (isEnabledFor(Level::TRACE_INT))
01445 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(arg1)); }
01446
01447 inline void Logger::trace(const char *pMessage,
01448 const QString &rArg1,
01449 const QString &rArg2) const
01450 { if (isEnabledFor(Level::TRACE_INT))
01451 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2)); }
01452
01453 inline void Logger::trace(const char *pMessage,
01454 const QString &rArg1,
01455 int arg2) const
01456 { if (isEnabledFor(Level::TRACE_INT))
01457 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2)); }
01458
01459 inline void Logger::trace(const char *pMessage,
01460 int arg1,
01461 const QString &rArg2) const
01462 { if (isEnabledFor(Level::TRACE_INT))
01463 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2)); }
01464
01465 inline void Logger::trace(const char *pMessage,
01466 int arg1,
01467 int arg2) const
01468 { if (isEnabledFor(Level::TRACE_INT))
01469 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2)); }
01470
01471 inline void Logger::trace(const char *pMessage,
01472 const QString &rArg1,
01473 const QString &rArg2,
01474 const QString &rArg3) const
01475 { if (isEnabledFor(Level::TRACE_INT))
01476 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2, rArg3)); }
01477
01478 inline void Logger::trace(const char *pMessage,
01479 const QString &rArg1,
01480 const QString &rArg2,
01481 int arg3) const
01482 { if (isEnabledFor(Level::TRACE_INT))
01483 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2).arg(arg3)); }
01484
01485 inline void Logger::trace(const char *pMessage,
01486 const QString &rArg1,
01487 int arg2,
01488 const QString &rArg3) const
01489 { if (isEnabledFor(Level::TRACE_INT))
01490 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(rArg3)); }
01491
01492 inline void Logger::trace(const char *pMessage,
01493 const QString &rArg1,
01494 int arg2,
01495 int arg3) const
01496 { if (isEnabledFor(Level::TRACE_INT))
01497 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(arg3)); }
01498
01499 inline void Logger::trace(const char *pMessage,
01500 int arg1,
01501 const QString &rArg2,
01502 const QString &rArg3) const
01503 { if (isEnabledFor(Level::TRACE_INT))
01504 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(rArg3)); }
01505
01506 inline void Logger::trace(const char *pMessage,
01507 int arg1,
01508 const QString &rArg2,
01509 int arg3) const
01510 { if (isEnabledFor(Level::TRACE_INT))
01511 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(arg3)); }
01512
01513 inline void Logger::trace(const char *pMessage,
01514 int arg1,
01515 int arg2,
01516 const QString &rArg3) const
01517 { if (isEnabledFor(Level::TRACE_INT))
01518 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(rArg3)); }
01519
01520 inline void Logger::trace(const char *pMessage,
01521 int arg1,
01522 int arg2,
01523 int arg3) const
01524 { if (isEnabledFor(Level::TRACE_INT))
01525 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(arg3)); }
01526
01527 inline void Logger::trace(const char *pMessage,
01528 const QVariant &rArg1,
01529 const QVariant &rArg2,
01530 const QVariant &rArg3) const
01531 { if (isEnabledFor(Level::TRACE_INT))
01532 forcedLog(Level::TRACE_INT, QString::fromUtf8(pMessage).arg(rArg1.toString(), rArg2.toString(), rArg3.toString())); }
01533
01534
01535
01536 inline void Logger::warn(const QString &rMessage) const
01537 { if (isEnabledFor(Level::WARN_INT))
01538 forcedLog(Level::WARN_INT, rMessage); }
01539
01540 inline void Logger::warn(const LogError &rLogError) const
01541 { if (isEnabledFor(Level::WARN_INT))
01542 forcedLog(Level::WARN_INT, rLogError.toString()); }
01543
01544 inline void Logger::warn(const char *pMessage) const
01545 { if (isEnabledFor(Level::WARN_INT))
01546 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage)); }
01547
01548 inline void Logger::warn(const char *pMessage,
01549 const QString &rArg1) const
01550 { if (isEnabledFor(Level::WARN_INT))
01551 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(rArg1)); }
01552
01553 inline void Logger::warn(const char *pMessage,
01554 int arg1) const
01555 { if (isEnabledFor(Level::WARN_INT))
01556 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(arg1)); }
01557
01558 inline void Logger::warn(const char *pMessage,
01559 const QString &rArg1,
01560 const QString &rArg2) const
01561 { if (isEnabledFor(Level::WARN_INT))
01562 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2)); }
01563
01564 inline void Logger::warn(const char *pMessage,
01565 const QString &rArg1,
01566 int arg2) const
01567 { if (isEnabledFor(Level::WARN_INT))
01568 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2)); }
01569
01570 inline void Logger::warn(const char *pMessage,
01571 int arg1,
01572 const QString &rArg2) const
01573 { if (isEnabledFor(Level::WARN_INT))
01574 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2)); }
01575
01576 inline void Logger::warn(const char *pMessage,
01577 int arg1,
01578 int arg2) const
01579 { if (isEnabledFor(Level::WARN_INT))
01580 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2)); }
01581
01582 inline void Logger::warn(const char *pMessage,
01583 const QString &rArg1,
01584 const QString &rArg2,
01585 const QString &rArg3) const
01586 { if (isEnabledFor(Level::WARN_INT))
01587 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2, rArg3)); }
01588
01589 inline void Logger::warn(const char *pMessage,
01590 const QString &rArg1,
01591 const QString &rArg2,
01592 int arg3) const
01593 { if (isEnabledFor(Level::WARN_INT))
01594 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(rArg1, rArg2).arg(arg3)); }
01595
01596 inline void Logger::warn(const char *pMessage,
01597 const QString &rArg1,
01598 int arg2,
01599 const QString &rArg3) const
01600 { if (isEnabledFor(Level::WARN_INT))
01601 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(rArg3)); }
01602
01603 inline void Logger::warn(const char *pMessage,
01604 const QString &rArg1,
01605 int arg2,
01606 int arg3) const
01607 { if (isEnabledFor(Level::WARN_INT))
01608 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(rArg1).arg(arg2).arg(arg3)); }
01609
01610 inline void Logger::warn(const char *pMessage,
01611 int arg1,
01612 const QString &rArg2,
01613 const QString &rArg3) const
01614 { if (isEnabledFor(Level::WARN_INT))
01615 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(rArg3)); }
01616
01617 inline void Logger::warn(const char *pMessage,
01618 int arg1,
01619 const QString &rArg2,
01620 int arg3) const
01621 { if (isEnabledFor(Level::WARN_INT))
01622 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(arg1).arg(rArg2).arg(arg3)); }
01623
01624 inline void Logger::warn(const char *pMessage,
01625 int arg1,
01626 int arg2,
01627 const QString &rArg3) const
01628 { if (isEnabledFor(Level::WARN_INT))
01629 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(rArg3)); }
01630
01631 inline void Logger::warn(const char *pMessage,
01632 int arg1,
01633 int arg2,
01634 int arg3) const
01635 { if (isEnabledFor(Level::WARN_INT))
01636 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(arg1).arg(arg2).arg(arg3)); }
01637
01638 inline void Logger::warn(const char *pMessage,
01639 const QVariant &rArg1,
01640 const QVariant &rArg2,
01641 const QVariant &rArg3) const
01642 { if (isEnabledFor(Level::WARN_INT))
01643 forcedLog(Level::WARN_INT, QString::fromUtf8(pMessage).arg(rArg1.toString(), rArg2.toString(), rArg3.toString())); }
01644
01645
01646 }
01647
01648
01649
01650
01651
01652 #endif // LOG4QT_LOGGER_H