Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

* Support for testing group URIs on being relative has been added (#478)

* Logging support at the R and C++ level has been added (#479, #487)
* Logging support at the R and C++ level has been added (#479, #487, #489)

* Use of TileDB Embedded was upgraded to release 2.12.1, and 2.12.2 (#480, #481)

Expand Down
3 changes: 2 additions & 1 deletion inst/include/spdlog_r_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ namespace spdlog {
// sending it to its final destination:
spdlog::memory_buf_t formatted;
spdlog::sinks::base_sink<Mutex>::formatter_->format(msg, formatted);
Rprintf(fmt::to_string(formatted).c_str());
formatted.push('\0'); // convert to c string
Rprintf(formatted.data()); // and print via R's i/o streams
}

void flush_() override {
Expand Down