Skip to content

Commit a5c81dc

Browse files
committed
format
1 parent 37d17bf commit a5c81dc

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

runtime-light/stdlib/diagnostics/contextual-logger.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ class contextual_logger final : vk::not_copyable {
6363

6464
public:
6565
template<typename... Args>
66-
void log(kphp::log::level level, std::optional<std::span<void* const>> trace, format_string<Args...> fmt,
67-
Args&&... args) const noexcept;
66+
void log(kphp::log::level level, std::optional<std::span<void* const>> trace, format_string<Args...> fmt, Args&&... args) const noexcept;
6867

6968
void add_extra_tag(std::string_view key, std::string_view value) noexcept;
7069
void remove_extra_tag(std::string_view key) noexcept;
@@ -74,8 +73,7 @@ class contextual_logger final : vk::not_copyable {
7473
};
7574

7675
template<typename... Args>
77-
void contextual_logger::log(kphp::log::level level, std::optional<std::span<void* const>> trace, format_string<Args...> fmt,
78-
Args&&... args) const noexcept {
76+
void contextual_logger::log(kphp::log::level level, std::optional<std::span<void* const>> trace, format_string<Args...> fmt, Args&&... args) const noexcept {
7977
static constexpr size_t LOG_BUFFER_SIZE = 512UZ;
8078
std::array<char, LOG_BUFFER_SIZE> log_buffer; // NOLINT
8179
size_t message_size{impl::format_log_message(log_buffer, fmt, std::forward<Args>(args)...)};

runtime-light/stdlib/diagnostics/logs.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ namespace kphp::log {
2222
namespace impl {
2323

2424
template<typename... Args>
25-
void select_logger_and_log(level level, std::optional<std::span<void* const>> trace, format_string<Args...> fmt,
26-
Args&&... args) noexcept {
25+
void select_logger_and_log(level level, std::optional<std::span<void* const>> trace, format_string<Args...> fmt, Args&&... args) noexcept {
2726
if (auto logger{contextual_logger::try_get()}; logger.has_value()) [[likely]] {
2827
(*logger).get().log(level, trace, fmt, std::forward<Args>(args)...);
2928
} else {

runtime-light/stdlib/diagnostics/raw-logger.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ struct raw_logger final {
2121
raw_logger() noexcept = delete;
2222

2323
template<typename... Args>
24-
static void log(kphp::log::level level, std::optional<std::span<void* const>> trace, format_string<Args...> fmt,
25-
Args&&... args) noexcept {
24+
static void log(kphp::log::level level, std::optional<std::span<void* const>> trace, format_string<Args...> fmt, Args&&... args) noexcept {
2625
static constexpr size_t LOG_BUFFER_SIZE = 512UZ;
2726
std::array<char, LOG_BUFFER_SIZE> log_buffer; // NOLINT
2827
size_t message_size{impl::format_log_message(log_buffer, fmt, std::forward<Args>(args)...)};

0 commit comments

Comments
 (0)