Sleeping Wombat Common Library  0.50.0
swCommonLibrary
Logger.h
Go to the documentation of this file.
1 #pragma once
2 
8 #include <string>
9 
10 
11 namespace sw
12 {
13 
14 namespace detail
15 {
16  class LoggerImpl;
17 }
18 
19 
23 class Logger
24 {
25 private:
26 
27  detail::LoggerImpl* m_impl;
28 
29 protected:
30 public:
31  explicit Logger () = default;
32  ~Logger () = default;
33 
34 
35  void Trace ( const std::string& message );
36  void Debug ( const std::string& message );
37  void Info ( const std::string& message );
38  void Warning ( const std::string& message );
39  void Error ( const std::string& message );
40  void Critical ( const std::string& message );
41 
42  void Trace ( const char* message );
43  void Debug ( const char* message );
44  void Info ( const char* message );
45  void Warning ( const char* message );
46  void Error ( const char* message );
47  void Critical ( const char* message );
48 };
49 
50 
51 } // sw
52 
Definition: Exception.h:11
This class is interface to write logger independent system.
Definition: Logger.h:23