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
LogStream.h
Go to the documentation of this file.
1#pragma once
2
3#include <chrono> // std::chrono::time_zone
4#include <iosfwd> // fwrd decl std::ostream
5
6namespace bux {
7
8//
9// Externals
10//
11std::ostream &timestamp(std::ostream &out, const std::chrono::time_zone *tz = nullptr);
12std::ostream &logTrace(std::ostream &out, const std::chrono::time_zone *tz = nullptr);
13
14} // namespace bux
15
16#define LOGTITLE(log,tz) (bux::timestamp(log,tz) <<" " __FILE__ "#" <<__LINE__ <<": ")
THE common namespace of bux library.
Definition AtomiX.cpp:3
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