Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
af62fd36
Commit
af62fd36
authored
May 24, 2019
by
Micha Mueller
Browse files
All specific logging shortcuts are now bundled in logging.h
parent
063da678
Changes
3
Hide whitespace changes
Inline
Side-by-side
common/include/RESTHttpsServer.h
View file @
af62fd36
...
...
@@ -68,9 +68,6 @@
#define endpointArgs http::response<http::string_body>& res, queries_t& queries
#define ServerLOG(sev) LOG(sev) << "HttpsServer: "
#define RESTAPILOG(sev) LOG(sev) << "REST-API: "
/******************************************************************************/
/**
...
...
common/include/logging.h
View file @
af62fd36
...
...
@@ -32,7 +32,10 @@
//to use it, only a boost severity-logger named lg is required
#define LOG(sev) BOOST_LOG_SEV(lg, boost::log::trivial::sev)
#define LOGH(sev) LOG(sev) << "HttpsServer: "
//set of log macros for specific application parts
#define ServerLOG(sev) LOG(sev) << "HttpsServer: "
#define RESTAPILOG(sev) LOG(sev) << "REST-API: "
#define LOGM(sev) LOG(sev) << "Mosquitto: "
//another shortcut which can take the severity level as variable
#define LOG_VAR(var) BOOST_LOG_SEV(lg, var)
...
...
dcdbpusher/MQTTPusher.cpp
View file @
af62fd36
...
...
@@ -11,8 +11,6 @@
#include <unistd.h>
#include "timestamp.h"
#define LOGM(sev) LOG(sev) << "Mosquitto: "
MQTTPusher
::
MQTTPusher
(
int
brokerPort
,
const
std
::
string
&
brokerHost
,
const
std
::
string
&
sensorPattern
,
int
qosLevel
,
pluginVector_t
&
plugins
,
an_pluginVector_t
&
aPlugins
,
int
maxNumberOfMessages
,
unsigned
int
maxInflightMsgNum
,
unsigned
int
maxQueuedMsgNum
)
:
_qosLevel
(
qosLevel
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment