File indexing completed on 2024-11-24 03:56:26
0001 /* 0002 * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best> 0003 * 0004 * SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QString> 0010 #include <QDateTime> 0011 #include <QMetaType> 0012 0013 namespace app::log { 0014 0015 enum Severity 0016 { 0017 Info, 0018 Warning, 0019 Error, 0020 }; 0021 0022 struct LogLine 0023 { 0024 Severity severity; 0025 QString source; 0026 QString source_detail; 0027 QString message; 0028 QDateTime time; 0029 }; 0030 0031 0032 } // namespace app::log 0033 0034 Q_DECLARE_METATYPE(app::log::LogLine) 0035 Q_DECLARE_METATYPE(app::log::Severity)