Keyple Util C++ Library 2.0.0
Reference Terminal Reader API for C++
src
main
cpp
LoggerFactory.cpp
Go to the documentation of this file.
1
/**************************************************************************************************
2
* Copyright (c) 2021 Calypso Networks Association https://calypsonet.org/ *
3
* *
4
* See the NOTICE file(s) distributed with this work for additional information regarding *
5
* copyright ownership. *
6
* *
7
* This program and the accompanying materials are made available under the terms of the Eclipse *
8
* Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 *
9
* *
10
* SPDX-License-Identifier: EPL-2.0 *
11
**************************************************************************************************/
12
13
#include "
LoggerFactory.h
"
14
15
namespace
keyple
{
16
namespace
core {
17
namespace
util {
18
namespace
cpp {
19
20
std::mutex
LoggerFactory::mtx
;
21
22
std::unique_ptr<Logger>
LoggerFactory::getLogger
(
const
std::type_info& type)
23
{
24
return
std::unique_ptr<Logger>(
new
Logger
(type.name(), &
mtx
));
25
}
26
27
}
28
}
29
}
30
}
LoggerFactory.h
keyple::core::util::cpp::LoggerFactory::getLogger
static std::unique_ptr< Logger > getLogger(const std::type_info &type)
Definition:
LoggerFactory.cpp:22
keyple::core::util::cpp::LoggerFactory::mtx
static std::mutex mtx
Definition:
LoggerFactory.h:34
keyple::core::util::cpp::Logger
Definition:
Logger.h:40
keyple
Definition:
ApduUtil.cpp:18
Generated by
1.9.2