3cb9160995e4302d9fad989e5d9de31dc4144883
[ric-plt/sdl.git] / include / private / logger.hpp
1 /*
2    Copyright (c) 2018-2019 Nokia.
3
4    Licensed under the Apache License, Version 2.0 (the "License");
5    you may not use this file except in compliance with the License.
6    You may obtain a copy of the License at
7
8        http://www.apache.org/licenses/LICENSE-2.0
9
10    Unless required by applicable law or agreed to in writing, software
11    distributed under the License is distributed on an "AS IS" BASIS,
12    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13    See the License for the specific language governing permissions and
14    limitations under the License.
15 */
16
17 #ifndef SHAREDDATALAYER_LOGGER_HPP_
18 #define SHAREDDATALAYER_LOGGER_HPP_
19
20 #include <iosfwd>
21
22 namespace shareddatalayer
23 {
24     class Logger
25     {
26     public:
27         virtual ~Logger() = default;
28
29         virtual std::ostream& emerg() = 0;
30
31         virtual std::ostream& alert() = 0;
32
33         virtual std::ostream& crit() = 0;
34
35         virtual std::ostream& error() = 0;
36
37         virtual std::ostream& warning() = 0;
38
39         virtual std::ostream& notice() = 0;
40
41         virtual std::ostream& info() = 0;
42
43         virtual std::ostream& debug() = 0;
44
45         Logger(const Logger&) = delete;
46         Logger(Logger&&) = delete;
47         Logger& operator = (const Logger&) = delete;
48         Logger& operator = (Logger&&) = delete;
49
50     protected:
51         Logger() = default;
52     };
53 }
54
55 #endif