Skip to content

Commit

Permalink
[transfer-engine] Cleanup transfer engine logs. Contributes to JB#46987
Browse files Browse the repository at this point in the history
  • Loading branch information
rainemak committed Sep 19, 2019
1 parent c25f8d7 commit 5d8f835
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 87 deletions.
27 changes: 27 additions & 0 deletions src/logging.cpp
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2019 Open Mobile Platform LLC.
*
* All rights reserved.
*
* This file is part of Sailfish Transfer Engine package.
*
* You may use this file under the terms of the GNU Lesser General
* Public License version 2.1 as published by the Free Software Foundation
* and appearing in the file license.lgpl included in the packaging
* of this file.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* and appearing in the file license.lgpl included in the packaging
* of this file.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/

#include "logging.h"

Q_LOGGING_CATEGORY(lcTransferLog, "org.sailfishos.transferengine", QtWarningMsg)
32 changes: 32 additions & 0 deletions src/logging.h
@@ -0,0 +1,32 @@
/*
* Copyright (c) 2019 Open Mobile Platform LLC.
*
* All rights reserved.
*
* This file is part of Sailfish Transfer Engine package.
*
* You may use this file under the terms of the GNU Lesser General
* Public License version 2.1 as published by the Free Software Foundation
* and appearing in the file license.lgpl included in the packaging
* of this file.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* and appearing in the file license.lgpl included in the packaging
* of this file.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/

#ifndef TRANSFERENGINE_LOGGING_H
#define TRANSFERENGINE_LOGGING_H

#include <QLoggingCategory>

Q_DECLARE_LOGGING_CATEGORY(lcTransferLog)

#endif
2 changes: 2 additions & 0 deletions src/src.pro
Expand Up @@ -53,10 +53,12 @@ PRE_TARGETDEPS += ts engineering_english
# Input
SOURCES += main.cpp \
dbmanager.cpp \
logging.cpp \
transferengine.cpp

HEADERS += \
dbmanager.h \
logging.h \
transferengine.h \
transferengine_p.h

Expand Down

0 comments on commit 5d8f835

Please sign in to comment.