LogHandler.h
Go to the documentation of this file.
1 //
3 // © Copyright 2022 SCHUNK Mobile Greifsysteme GmbH, Lauffen/Neckar Germany
4 // © Copyright 2022 FZI Forschungszentrum Informatik, Karlsruhe, Germany
5 //
6 // This file is part of the Schunk SVH Library.
7 //
8 // The Schunk SVH Library is free software: you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation, either version 3 of the License, or (at your
11 // option) any later version.
12 //
13 // The Schunk SVH Library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
16 // Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License along with
19 // the Schunk SVH Library. If not, see <https://www.gnu.org/licenses/>.
20 //
22 
23 //----------------------------------------------------------------------
30 //----------------------------------------------------------------------
31 #pragma once
32 
33 #include <string>
34 
36 
37 namespace driver_svh {
38 
40 {
41 public:
42  LogHandler() = default;
43  virtual ~LogHandler() = default;
44 
45  virtual void log(const std::string& file,
46  const int line,
47  const std::string& name,
48  LogLevel level,
49  const std::string& msg) = 0;
50 };
51 
53 {
54 public:
55  ShellLogHandler() = default;
56  virtual ~ShellLogHandler() override = default;
57  virtual void log(const std::string& file,
58  const int line,
59  const std::string& name,
60  LogLevel level,
61  const std::string& msg) override;
62 
63 private:
64 };
65 
66 } // namespace driver_svh
virtual ~LogHandler()=default
virtual void log(const std::string &file, const int line, const std::string &name, LogLevel level, const std::string &msg)=0


schunk_svh_library
Author(s): Georg Heppner, Lars Pfotzer, Felix Exner, Johannes Mangler, Stefan Scherzinger, Pascal Becker
autogenerated on Fri Apr 14 2023 02:26:23