Sha256: 9a9c02830e0af5663d21e3a4407a9f0cd1360d3bad9dea4077d1b32fbc35a282

Contents?: true

Size: 1.07 KB

Versions: 34

Compression:

Stored size: 1.07 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/details/log_msg.h>
#endif

#include <spdlog/details/os.h>

namespace spdlog {
namespace details {

SPDLOG_INLINE log_msg::log_msg(spdlog::log_clock::time_point log_time, spdlog::source_loc loc, string_view_t a_logger_name,
    spdlog::level::level_enum lvl, spdlog::string_view_t msg)
    : logger_name(a_logger_name)
    , level(lvl)
    , time(log_time)
#ifndef SPDLOG_NO_THREAD_ID
    , thread_id(os::thread_id())
#endif
    , source(loc)
    , payload(msg)
{}

SPDLOG_INLINE log_msg::log_msg(
    spdlog::source_loc loc, string_view_t a_logger_name, spdlog::level::level_enum lvl, spdlog::string_view_t msg)
    : log_msg(os::now(), loc, a_logger_name, lvl, msg)
{}

SPDLOG_INLINE log_msg::log_msg(string_view_t a_logger_name, spdlog::level::level_enum lvl, spdlog::string_view_t msg)
    : log_msg(os::now(), source_loc{}, a_logger_name, lvl, msg)
{}

} // namespace details
} // namespace spdlog

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
couchbase-3.2.0-universal-darwin-20 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.2.0 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.1.1 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.1.1-universal-darwin-20 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.1.0 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.3 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.3-universal-darwin-20 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.2 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.1-universal-darwin-19 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.1 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.0-universal-darwin-19 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.0 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.0.beta.1-universal-darwin-19 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.0.beta.1 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.0.alpha.5-x86_64-linux ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.0.alpha.5-universal-darwin-19 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.0.alpha.5-x86_64-darwin-19 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.0.alpha.5 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.0.alpha.4-x86_64-linux ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/spdlog/include/spdlog/details/log_msg-inl.h