OpcUaCanOpen
CANopen OPC-UA server
BoostRotatingFileLog.h
Go to the documentation of this file.
1
/* © Copyright CERN, 2015. All rights not expressly granted are reserved.
2
* BoostRotatingFileLog.h
3
*
4
* Created on: Aug 18, 2015
5
* Author: Benjamin Farnham <benjamin.farnham@cern.ch>
6
*
7
* This file is part of Quasar.
8
*
9
* Quasar is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU Lesser General Public Licence as published by
11
* the Free Software Foundation, either version 3 of the Licence.
12
*
13
* Quasar 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
16
* GNU Lesser General Public Licence for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public License
19
* along with Quasar. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef BOOST_ROTATING_FILE_LOG_H_
23
#define BOOST_ROTATING_FILE_LOG_H_
24
25
#include <string>
26
#include "
LogSinkInterface.h
"
27
#include <boost/log/sources/logger.hpp>
28
29
class
BoostRotatingFileLog
:
public
LogSinkInterface
30
{
31
public
:
32
virtual
bool
initialize
();
33
virtual
void
logMessage
(
const
std::string
& msg);
34
35
private
:
36
void
addFileSink
();
37
boost::log::sources::logger_mt
m_boostLogger
;
38
};
39
40
#endif
/* BOOST_ROTATING_FILE_LOG_H_ */
LogIt
include
BoostRotatingFileLog.h
Generated on Fri Sep 11 2020 14:30:07 for OpcUaCanOpen by
1.8.14