29 #include <QSharedPointer> 34 #ifdef QSLOG_IS_SHARED_LIBRARY 35 #define QSLOG_SHARED_OBJECT Q_DECL_EXPORT 36 #elif defined(QSLOG_IS_SHARED_LIBRARY_IMPORT) 37 #define QSLOG_SHARED_OBJECT Q_DECL_IMPORT 39 #define QSLOG_SHARED_OBJECT 48 typedef void (*LogFunction)(
const QString &message,
Level level);
52 virtual void write(
const QString& message,
Level level) = 0;
53 virtual bool isValid() = 0;
85 static DestinationPtr MakeFileDestination(
const QString& filePath,
90 static DestinationPtr MakeDebugOutputDestination();
94 static DestinationPtr MakeFunctorDestination(QObject *receiver,
const char *member);
MaxSizeBytes()
Definition: QsLogDest.h:67
MaxOldLogCount()
Definition: QsLogDest.h:74
Definition: QsLogDest.h:62
Definition: QsLogLevel.h:35
Definition: QsLogDest.h:61
QSharedPointer< Destination > DestinationPtr
Definition: QsLogDest.h:55
void(* LogFunction)(const QString &message, Level level)
Definition: QsLogDest.h:48
#define QSLOG_SHARED_OBJECT
Definition: QsLogDest.h:39
Definition: QsLogDest.h:72
MaxSizeBytes(qint64 size_)
Definition: QsLogDest.h:68
Level
Definition: QsLogLevel.h:31
LogRotationOption
Definition: QsLogDest.h:59
qint64 size
Definition: QsLogDest.h:69
int count
Definition: QsLogDest.h:76
Definition: QsLogDest.h:45
Creates logging destinations/sinks.
Definition: QsLogDest.h:82
MaxOldLogCount(int count_)
Definition: QsLogDest.h:75
Definition: QsLogDest.h:65