mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
time is now even more precise. added file, function, line macros
This commit is contained in:
parent
9d6944f9b8
commit
4ed5da0098
@ -10,7 +10,9 @@
|
|||||||
if ( log_level < UPM_LOGGER::LogLevel() ) \
|
if ( log_level < UPM_LOGGER::LogLevel() ) \
|
||||||
; \
|
; \
|
||||||
else \
|
else \
|
||||||
UPM_LOGGER().log(log_level)
|
UPM_LOGGER().log(log_level) << __FILE__ << " " \
|
||||||
|
<< __FUNCTION__ << " " \
|
||||||
|
<< __LINE__ << ": "
|
||||||
|
|
||||||
namespace upm {
|
namespace upm {
|
||||||
|
|
||||||
@ -70,10 +72,9 @@ namespace upm {
|
|||||||
{
|
{
|
||||||
using namespace std::chrono;
|
using namespace std::chrono;
|
||||||
|
|
||||||
os << "UPM - " << duration_cast<milliseconds>
|
os << "UPM - " << duration_cast<nanoseconds>
|
||||||
(system_clock::now().time_since_epoch()).count();
|
(system_clock::now().time_since_epoch()).count();
|
||||||
os << " " << getLogLevelName(level) << ": ";
|
os << " " << getLogLevelName(level) << " ";
|
||||||
os << std::string(level > LOG_DEBUG ? level - LOG_DEBUG : 0, '\t');
|
|
||||||
|
|
||||||
logLevel = level;
|
logLevel = level;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user