summaryrefslogtreecommitdiffstats
path: root/src/Log.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-02-28 18:41:12 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-02-28 18:41:12 +0100
commit5c89c0ec736770c94f97ced8a754c467d8536a09 (patch)
tree86badba4ac6bd68032ac0ec1d8a5e61dd0d02fd2 /src/Log.h
parent1a258711b00cef322cadedf35540d64ae18eb0b0 (diff)
downloaddabmux-5c89c0ec736770c94f97ced8a754c467d8536a09.tar.gz
dabmux-5c89c0ec736770c94f97ced8a754c467d8536a09.tar.bz2
dabmux-5c89c0ec736770c94f97ced8a754c467d8536a09.zip
Minor Log.{h,cpp} improvements
Diffstat (limited to 'src/Log.h')
-rw-r--r--src/Log.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Log.h b/src/Log.h
index 81490b2..2873818 100644
--- a/src/Log.h
+++ b/src/Log.h
@@ -52,7 +52,6 @@ static const std::string levels_as_str[] =
/** Abstract class all backends must inherit from */
class LogBackend {
public:
- virtual ~LogBackend() {}
virtual void log(log_level_t level, std::string message) = 0;
virtual std::string get_name() = 0;
};
@@ -116,7 +115,7 @@ class LogToFile : public LogBackend {
{"DEBUG", "INFO", "WARN", "ERROR", "ALERT", "EMERG"};
// fprintf is thread-safe
- fprintf(log_file, "ODR-DabMux: %s: %s\n",
+ fprintf(log_file, SYSLOG_IDENT ": %s: %s\n",
log_level_text[(size_t)level], message.c_str());
fflush(log_file);
}