Keyple Util C++ Library 2.0.0
Reference Terminal Reader API for C++
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
15namespace keyple {
16namespace core {
17namespace util {
18namespace cpp {
19
20std::mutex LoggerFactory::mtx;
21
22std::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}
static std::unique_ptr< Logger > getLogger(const std::type_info &type)