Sha256: 2487163747cf76c4831458d840b00ed019d28f445b5d56daaa50a9defab6cac6

Contents?: true

Size: 753 Bytes

Versions: 24

Compression:

Stored size: 753 Bytes

Contents

// Copyright(c) 2015-present, Gabi Melman & spdlog contributors.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)

#pragma once

#include "registry.h"

namespace spdlog {

// Default logger factory-  creates synchronous loggers
class logger;

struct synchronous_factory
{
    template<typename Sink, typename... SinkArgs>
    static std::shared_ptr<spdlog::logger> create(std::string logger_name, SinkArgs &&... args)
    {
        auto sink = std::make_shared<Sink>(std::forward<SinkArgs>(args)...);
        auto new_logger = std::make_shared<spdlog::logger>(std::move(logger_name), std::move(sink));
        details::registry::instance().initialize_logger(new_logger);
        return new_logger;
    }
};
} // namespace spdlog

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
couchbase-3.0.0-universal-darwin-19 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.beta.1-universal-darwin-19 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.beta.1 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.5-x86_64-linux ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.5-universal-darwin-19 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.5-x86_64-darwin-19 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.5 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.4-x86_64-linux ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.4-universal-darwin-19 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.4 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.3-x86_64-linux ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.3-x86_64-darwin-19 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.3-universal-darwin-19 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.3 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.2-x86_64-linux ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.2-x86_64-darwin-19 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.2-universal-darwin-19 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h
couchbase-3.0.0.alpha.2 ext/third_party/spdlog/include/spdlog/details/synchronous_factory.h