File: log.h

package info (click to toggle)
dc-qt 0.2.0.alpha-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,948 kB
  • ctags: 5,361
  • sloc: cpp: 28,936; makefile: 19
file content (37 lines) | stat: -rw-r--r-- 832 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// C++ Interface: log
//
// Description: 
//
//
// Author: Rikard Björklind <olof@linux.nu>, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef LOG_H__
#define LOG_H__

#include <QString>
#include <QColor>

//! Logging interface
class Log
{
    public:
        virtual void info(const char* format, ...) = 0;
        virtual void info(const QString&) = 0;
        virtual void error(const char* format, ...) = 0;
        virtual void error(const QString&) = 0;
        virtual void warn(const char* format, ...) = 0;
        virtual void warn(const QString&) = 0;
        virtual void debug(const char* format, ...) = 0;
        virtual void debug(const QString&) = 0;
		virtual void msg(const QString&,const QColor& color) = 0;
        virtual ~Log() {}
};

extern Log* logger;


#endif