Skip to content

Commit

Permalink
Test char8_t only with fmtlib
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Artsishevsky <polter.rnd@gmail.com>
  • Loading branch information
polter-rnd committed Jun 7, 2024
1 parent 0067d3c commit 51deffa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ auto main(int /*argc*/, char* /*argv*/[]) -> int
log.add_sink<Log::OStreamSink>(std::cerr);
log.info("hello!");

#ifdef ENABLE_FMTLIB
const std::basic_stringstream<char8_t> mystream;
Log::Logger log19{u8"uchar8 log"};
log19.add_sink<Log::OStreamSink>(mystream, u8"(%t) [%l] %F|%L: %m");
Expand All @@ -36,6 +37,7 @@ auto main(int /*argc*/, char* /*argv*/[]) -> int
reinterpret_cast<const char*>(mystream.view().data()),
mystream.view().size())
<< "\n";
#endif

auto log_root = std::make_shared<Log::Logger<std::string_view>>("kek_root");

Expand Down

0 comments on commit 51deffa

Please sign in to comment.