2 * Copyright (C) 2012 Intel Corporation
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) version 3.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
27 #include <syncevo/Logging.h>
28 #include <syncevo/util.h>
30 #include <syncevo/declarations.h>
34 * A logger which writes to DLT and passes log messages
35 * through to its parent.
37 class LoggerDLT : public Logger
39 Handle m_parentLogger;
40 // avoid dependency on dlt.h here
44 LoggerDLT(const char *appid, const char *description);
47 virtual void messagev(const MessageOptions &options,
52 * Extracts current log level from the LoggerDLT which was
53 * pushed onto the stack, DLT_LOG_DEFAULT if none active.
55 static int getCurrentDLTLogLevel();
61 #endif // INCL_LOGSYSLOG