bux API Reference 1.11.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 "XPlatform.h" // bux::T_LocalZone
4#include <iosfwd> // fwrd decl std::ostream
5
6namespace bux {
7
8//
9// Externals
10//
11std::ostream &timestamp(std::ostream &out, T_LocalZone tz = T_LocalZone());
12std::ostream &logTrace(std::ostream &out, T_LocalZone tz = T_LocalZone());
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
const std::chrono::time_zone * T_LocalZone
Definition XPlatform.h:18
std::ostream & timestamp(std::ostream &out, T_LocalZone tz)
Definition LogStream.cpp:35
std::ostream & logTrace(std::ostream &out, T_LocalZone tz)
Definition LogStream.cpp:78