MuseScore  3.4
Music composition and notation
importmxmllogger.h
Go to the documentation of this file.
1 //=============================================================================
2 // MuseScore
3 // Music Composition & Notation
4 //
5 // Copyright (C) 2017 Werner Schweer and others
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License version 2
9 // as published by the Free Software Foundation and appearing in
10 // the file LICENCE.GPL
11 //=============================================================================
12 
13 #ifndef __IMPORTMXMLLOGGER_H__
14 #define __IMPORTMXMLLOGGER_H__
15 
16 class QXmlStreamReader;
17 
18 namespace Ms {
19 
20 class MxmlLogger {
21 public:
22  enum class Level : char {
24  };
26  void logDebugTrace(const QString& trace, const QXmlStreamReader* const xmlreader = 0);
27  void logDebugInfo(const QString& info, const QXmlStreamReader* const xmlreader = 0);
28  void logError(const QString& error, const QXmlStreamReader* const xmlreader = 0);
29  void setLoggingLevel(const Level level) { _level = level; }
30 private:
32  };
33 
34 } // namespace Ms
35 
36 #endif
Level
Definition: importmxmllogger.h:22
void setLoggingLevel(const Level level)
Definition: importmxmllogger.h:29
Definition: importmxmllogger.h:20
MxmlLogger()
Definition: importmxmllogger.h:25
void logDebugInfo(const QString &info, const QXmlStreamReader *const xmlreader=0)
Log debug info (non-fatal events relevant for debugging).
Definition: importmxmllogger.cpp:75
Level _level
Definition: importmxmllogger.h:31
Definition: aeolus.cpp:26
void logError(const QString &error, const QXmlStreamReader *const xmlreader=0)
Log error (possibly non-fatal but to be reported to the user anyway).
Definition: importmxmllogger.cpp:90
void logDebugTrace(const QString &trace, const QXmlStreamReader *const xmlreader=0)
Log debug (function) trace.
Definition: importmxmllogger.cpp:60