aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src/Log.cpp
Commit message (Collapse)AuthorAgeFilesLines
* nxcomp/src/Log.cpp: add PID to thread ID output if requested.Mihai Moldovan2017-10-271-1/+2
| | | | | | | | The default function we use (if a thread name is not specified explicitly) is pthread_self(). This function returns a number that is guaranteed to be unique for each thread within a process, but this assertion doesn't hold globally. Hence only using the thread ID is ambiguous when logging from multiple processes.
* nxcomp/src/Log.{cpp,h}: port to std::stack as internal buffer structure.Mihai Moldovan2017-10-271-5/+3
| | | | | | | | This has one drawback: after flushing log data to its underlying output, a new NXLogStamp object MUST be written to the NXLog object in order to create a new entry within the stack. This can be changed if necessary. For now I'd like to keep it as-is.
* nxcomp/{configure.ac,Log.cpp}: implement configure-time std::put_time check ↵Mihai Moldovan2017-10-271-1/+2
| | | | and use macro value in Log.cpp.
* New logging implementationVadim Troshchinskiy2017-10-271-0/+121
Features: * Works without ifdefs * Configurable with commandline arguments * Log level configurable per file * Thread safe