eVaf
ilogger.h File Reference

Logger interface for eVaf. More...

#include "libcommon.h"
#include <QObject>
#include <QString>
#include <QByteArray>

Go to the source code of this file.

Classes

class  eVaf::Common::iLogger
 Logger interface for eVaf modules and applications. More...
 

Namespaces

 eVaf
 Global eVaf namespace.
 
 eVaf::Common
 Common eVaf library.
 

Macros

#define EVAF_DEBUG(...)
 Macro for debug messages. More...
 
#define EVAF_ERROR(...)
 Macro for error messages. More...
 
#define EVAF_FATAL_ERROR(...)
 Macro for fatal error messages. More...
 
#define EVAF_INFO(...)
 Macro for info messages. More...
 
#define EVAF_WARNING(...)
 Macro for warning messages. More...
 

Typedefs

typedef void(* eVaf::Common::FatalMsgHandler) (QString const &msg, QString const &source, QString const &where)
 Prototype for custom fatal message handler. More...
 

Detailed Description

Logger interface for eVaf.

Author
Enar Vaikene

Copyright (c) 2011-2012 Enar Vaikene

This file is part of the eVaf C++ cross-platform application development framework.

This file can be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.

Alternatively, this file may be used in accordance with the Commercial License Agreement provided with the Software.

Definition in file ilogger.h.

Macro Definition Documentation

#define EVAF_DEBUG (   ...)
Value:
do { \
eVaf::Common::iLogger::instance()->printf(__VA_ARGS__), \
0, \
eVaf::Common::iLogger::instance()->printf("%s:%s:%d", __FILE__, __FUNCTION__, __LINE__) \
); \
} while (0)
virtual void write(Severity severity, QString const &msg, QString const &source=0, QString const &where=0)=0
Outputs a message.
static iLogger * instance()
Returns the iLogger interface instance.
Information for debugging purposes.
Definition: ilogger.h:65

Macro for debug messages.

This macro expands to a debug message output with the location in the source code where the message is output. All the debug messages are supressed when the NDEBUG directive is defined.

Definition at line 324 of file ilogger.h.

#define EVAF_ERROR (   ...)
Value:
do { \
eVaf::Common::iLogger::instance()->printf(__VA_ARGS__), \
0, \
eVaf::Common::iLogger::instance()->printf("%s:%s:%d", __FILE__, __FUNCTION__, __LINE__) \
); \
} while (0)
virtual void write(Severity severity, QString const &msg, QString const &source=0, QString const &where=0)=0
Outputs a message.
Unexpected issues in the software that could be solved automatically.
Definition: ilogger.h:62
static iLogger * instance()
Returns the iLogger interface instance.

Macro for error messages.

This macro expands to an error message output with the location in the source code where the error occurred.

Definition at line 275 of file ilogger.h.

#define EVAF_FATAL_ERROR (   ...)
Value:
do { \
eVaf::Common::iLogger::instance()->printf(__VA_ARGS__), \
0, \
eVaf::Common::iLogger::instance()->printf("%s:%s:%d", __FILE__, __FUNCTION__, __LINE__) \
); \
} while (0)
Fatal error that causes the application to stop functioning.
Definition: ilogger.h:61
virtual void write(Severity severity, QString const &msg, QString const &source=0, QString const &where=0)=0
Outputs a message.
static iLogger * instance()
Returns the iLogger interface instance.

Macro for fatal error messages.

This macro expands to a fatal error message output with the location in the source code where the error occurred.

Definition at line 259 of file ilogger.h.

#define EVAF_INFO (   ...)
Value:
do { \
eVaf::Common::iLogger::instance()->printf(__VA_ARGS__), \
0, \
eVaf::Common::iLogger::instance()->printf("%s:%s:%d", __FILE__, __FUNCTION__, __LINE__) \
); \
} while (0)
General information output by the application or modules.
Definition: ilogger.h:64
virtual void write(Severity severity, QString const &msg, QString const &source=0, QString const &where=0)=0
Outputs a message.
static iLogger * instance()
Returns the iLogger interface instance.

Macro for info messages.

This macro expands to an info message output with the location in the source code where the message is output.

Definition at line 307 of file ilogger.h.

#define EVAF_WARNING (   ...)
Value:
do { \
eVaf::Common::iLogger::instance()->printf(__VA_ARGS__), \
0, \
eVaf::Common::iLogger::instance()->printf("%s:%s:%d", __FILE__, __FUNCTION__, __LINE__) \
); \
} while (0)
Expected issues in the software that will be solved automatically.
Definition: ilogger.h:63
virtual void write(Severity severity, QString const &msg, QString const &source=0, QString const &where=0)=0
Outputs a message.
static iLogger * instance()
Returns the iLogger interface instance.

Macro for warning messages.

This macro expands to a warning message output with the location in the source code where the warning occurred.

Definition at line 291 of file ilogger.h.