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