AnCH Framework 0.1
Another C++ Hack Framework
 
Loading...
Searching...
No Matches
loggerConfiguration.hpp
1/*
2 ANCH Framework: ANother C++ Hack is a C++ framework based on C++11 standard
3 Copyright (C) 2012 Vincent Lachenal
4
5 This file is part of ANCH Framework.
6
7 ANCH Framework is free software: you can redistribute it and/or modify
8 it under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 ANCH Framework is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public License
18 along with ANCH Framework. If not, see <http://www.gnu.org/licenses/>.
19*/
20#pragma once
21
22#include <iostream>
23#include <vector>
24
25#include "logger/levels.hpp"
26#include "logger/writer.hpp"
27
28namespace anch::logger {
29
36 private:
38 std::string _category;
39
42
44 std::vector<anch::logger::Writer*> _writers;
45
46 public:
47 // Constructor +
55 LoggerConfiguration(const std::string& category,
56 const anch::logger::Level& level,
57 const std::vector<anch::logger::Writer*>& writers);
58 // Constructor -
59
60 // Destructor +
65 // Destructor -
66
67 public:
68 // Accessors +
74 const std::string& getCategory() const;
75
82
88 const std::vector<anch::logger::Writer*>& getWriters() const;
89 // Accessors -
90
91 };
92
93}
94
95#include "logger/impl/loggerConfiguration.hpp"
LoggerConfiguration(const std::string &category, const anch::logger::Level &level, const std::vector< anch::logger::Writer * > &writers)
const std::vector< anch::logger::Writer * > & getWriters() const
const std::string & getCategory() const
const anch::logger::Level & getLevel() const
Logger namespace.
Definition anchDateFormatter.hpp:27
Level
Definition levels.hpp:32