bux API Reference 1.9.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
Loading...
Searching...
No Matches
test/smoke_timestamp.cpp
#include <bux/LogStream.h> // bux::timestamp(), bux::logTrace(), LOGTITLE()
#include <iostream> // std::cout
int main()
{
//std::cout <<bux::timestamp <<'\n';
bux::timestamp(std::cout) <<'\n';
bux::timestamp(std::cout, std::chrono::get_tzdb().current_zone()) <<'\n';
//std::cout <<bux::logTrace <<'\n';
bux::logTrace(std::cout) <<'\n';
bux::logTrace(std::cout, std::chrono::get_tzdb().current_zone()) <<'\n';
LOGTITLE(std::cout, nullptr) <<"Hello !!!\n";
LOGTITLE(std::cout, std::chrono::get_tzdb().current_zone()) <<"Hello !!!\n";
}
#define LOGTITLE(log, tz)
Definition LogStream.h:16
std::ostream & timestamp(std::ostream &out, const std::chrono::time_zone *tz)
Definition LogStream.cpp:32
std::ostream & logTrace(std::ostream &out, const std::chrono::time_zone *tz)
Definition LogStream.cpp:62