diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2013-04-08 18:57:11 +0200 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2013-05-06 16:28:12 +0200 |
commit | b5befe6cbf450346678a9a5d79ba885be9bd5dab (patch) | |
tree | b0b01da93b2ac0c4c2a826436ef5bbac40c3ccf2 /src/syncevo/LocalTransportAgent.cpp | |
parent | 77b26de4b8bd09edf37adbeeff3b640a535ed1d5 (diff) |
Logging: remove usage of Logger instance
Passing an explicit Logger instance to the SE_LOG* macros was hardly
ever used and only made the macros more complex.
The only usage of it was in some backends, which then added a prefix
string automatically. The same effect can be achieved by passing
getDisplayName(). Exception handling no longer needs a Logger instance,
the prefix alone is enough.
The other intended usage, avoiding global variables for logging by
passing a logger known to the caller, was not possible at all.
To make prefix handling more flexible, it is now passed as a "const
std::string *" instead of a "const char *".
Diffstat (limited to 'src/syncevo/LocalTransportAgent.cpp')
-rw-r--r-- | src/syncevo/LocalTransportAgent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syncevo/LocalTransportAgent.cpp b/src/syncevo/LocalTransportAgent.cpp index 7c64124d..dddc47b8 100644 --- a/src/syncevo/LocalTransportAgent.cpp +++ b/src/syncevo/LocalTransportAgent.cpp @@ -837,7 +837,7 @@ class LocalTransportAgentChild : public TransportAgent, private LoggerBase * Write message into our own log and send to parent. */ virtual void messagev(Level level, - const char *prefix, + const std::string *prefix, const char *file, int line, const char *function, |