The MAUVE Toolchain
mauve_formatter.hpp
1 /*
2  * Copyright 2017 ONERA
3  *
4  * This file is part of the MAUVE Runtime project.
5  *
6  * MAUVE Runtime is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License version 3 as
8  * published by the Free Software Foundation.
9  *
10  * MAUVE Runtime is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with MAUVE. If not, see <https://www.gnu.org/licenses/lgpl-3.0>.
17  */
18 #ifndef MAUVE_RUNTIME_FORMATTER_HPP
19 #define MAUVE_RUNTIME_FORMATTER_HPP
20 
21 #include <spdlog/formatter.h>
22 #include "mauve/runtime/common.hpp"
23 
24 namespace mauve {
25  namespace runtime {
26 
30  class mauve_formatter: public spdlog::formatter
31  {
32  public:
34  virtual ~mauve_formatter() {}
40  virtual void format(spdlog::details::log_msg& msg);
41  };
42 
43 }}
44 
45 #endif
virtual ~mauve_formatter()
Destructor.
Definition: mauve_formatter.hpp:34
The MAUVE namespace.
Definition: tracing.hpp:24
virtual void format(spdlog::details::log_msg &msg)
Format a log message.
Formatter for MAUVE loggers.
Definition: mauve_formatter.hpp:30