X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;f=src%2Flibs%2FCommon%2Filogger.h;h=4d865c9ee6ed6d741dc2ede6eb8645402c56e811;hb=refs%2Fheads%2Fqt5;hp=cf8e5c74dfe9d61a6db8854ebd36383eaa8c5bb3;hpb=720224734cb4f6ea2708c6b5ecf93cc666aad378;p=evaf
diff --git a/src/libs/Common/ilogger.h b/src/libs/Common/ilogger.h
index cf8e5c7..4d865c9 100644
--- a/src/libs/Common/ilogger.h
+++ b/src/libs/Common/ilogger.h
@@ -3,7 +3,7 @@
* @brief Logger interface for eVaf
* @author Enar Vaikene
*
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2012 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
@@ -62,7 +62,8 @@ public:
Error, ///< Unexpected issues in the software that could be solved automatically.
Warning, ///< Expected issues in the software that will be solved automatically.
Info, ///< General information output by the application or modules.
- Debug ///< Information for debugging purposes.
+ Debug, ///< Information for debugging purposes.
+ Count ///< Number of severity levels
};
/// Interface constructor
@@ -92,6 +93,8 @@ public:
*
* Use the setDefaultSource() function to change the default source name. If not set, then
* uses the default source name "common".
+ *
+ * Changing the name of the default source resets any other settings set for the default source.
*/
virtual void setDefaultSource(QString const & source) = 0;
@@ -240,26 +243,13 @@ signals:
* your receiver to this signal if you want to add your own message handling. For example,
* use this signal to show messages in a log window etc.
*/
- void loggerEvent(Severity severity, QString const & text, QString const & source, QString const & where);
+ void loggerEvent(Common::iLogger::Severity severity, QString const & text, QString const & source, QString const & where);
};
} // namespace eVaf::Common
} // namespace eVaf
-/**
- * Outputs info messages
- * @param msg The format string
- * @param ... Variable list of arguments
- *
- * The qInfo() function adds info messages to the Qt family of functions qDebug(), qWarning(), qError() and qFatal().
- */
-void COMMON_EXPORT qInfo(char const * const msg, ...)
-#ifdef Q_OS_LINUX
- __attribute__((format(printf, 1, 2)))
-#endif
-;
-
/**
* Macro for fatal error messages.
*