Sha256: 6035758536abd2a2b18d621d6639e4ccaecd9773c6a42e0c636360fbd398b1fd

Contents?: true

Size: 1.18 KB

Versions: 34

Compression:

Stored size: 1.18 KB

Contents

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

#pragma once

#ifndef SPDLOG_HEADER_ONLY
#include <spdlog/sinks/stdout_color_sinks.h>
#endif

#include <spdlog/logger.h>
#include <spdlog/common.h>

namespace spdlog {

template<typename Factory>
SPDLOG_INLINE std::shared_ptr<logger> stdout_color_mt(const std::string &logger_name, color_mode mode)
{
    return Factory::template create<sinks::stdout_color_sink_mt>(logger_name, mode);
}

template<typename Factory>
SPDLOG_INLINE std::shared_ptr<logger> stdout_color_st(const std::string &logger_name, color_mode mode)
{
    return Factory::template create<sinks::stdout_color_sink_st>(logger_name, mode);
}

template<typename Factory>
SPDLOG_INLINE std::shared_ptr<logger> stderr_color_mt(const std::string &logger_name, color_mode mode)
{
    return Factory::template create<sinks::stderr_color_sink_mt>(logger_name, mode);
}

template<typename Factory>
SPDLOG_INLINE std::shared_ptr<logger> stderr_color_st(const std::string &logger_name, color_mode mode)
{
    return Factory::template create<sinks::stderr_color_sink_st>(logger_name, mode);
}
} // namespace spdlog

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
couchbase-3.0.0.alpha.4-universal-darwin-19 ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.4 ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.3-x86_64-linux ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.3-x86_64-darwin-19 ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.3-universal-darwin-19 ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.3 ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.2-x86_64-linux ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.2-x86_64-darwin-19 ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.2-universal-darwin-19 ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.2 ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.1-x86_64-linux ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.1-x86_64-darwin-19 ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.1-universal-darwin-19 ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
couchbase-3.0.0.alpha.1 ext/third_party/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h