Commit Graph

21 Commits

Author SHA1 Message Date
Martin Pulec
dd49b48b69 Added log_perror
Same as perror but uses the logger
2021-04-21 14:42:02 +02:00
Martin Pulec
b888e09800 Key control: shortcut to control repeating of msgs 2020-11-13 14:50:29 +01:00
Martin Pulec
bd552be430 Allow verbosity increase with -V
+ small updates
2020-11-05 09:30:15 +01:00
Martin Pulec
266b87fe09 Logger: force color output if both out&err are term
Force color output if both stdout and stderr are connected to terminal.
The setting is global and it is possible that only stdout is redirected
(eg. to pager) while the check here was for clog (cerr) only. Thus
escape sequences had been unintentionally output to the pipe.
2020-11-05 09:24:54 +01:00
Martin Pulec
024494f4b8 Option to disable message repeats suppressing 2020-11-05 09:21:33 +01:00
Martin Pulec
c2ff176904 Logger: suppress repeated messages 2020-11-05 09:07:45 +01:00
Martin Pulec
236f5b0589 Make: added target check and distcheck
+ added check for CppUnit
2019-11-19 08:22:50 +01:00
Martin Pulec
4c71573a89 Fixed first series of Coverity bugs 2019-11-09 17:20:37 +01:00
Martin Pulec
31d9809fcd Updated documentation
Updated authors, copyright to 3-clause BSD (where possible) and file-level Doxygen
2019-11-09 13:47:11 +01:00
Martin Pulec
5027f4ecc4 Logger: moved most of the logic to C++ stream
Most of the logic was moved to the C++ implementation, log_msg() is now
using the ostream.

This allows use of colors from rang.hpp also in log messages.
2019-06-26 16:25:49 +02:00
Martin Pulec
921d094444 Debug: use the rang library for color output 2018-09-20 16:33:33 +02:00
Martin Pulec
234348ebee log_msg: do not use colors in MSYS2 terminal
MSYS2 pseudoterminal doesn't handle MSW terminal colors, it uses POSIX
colors instead.
2018-07-24 09:38:47 +02:00
Martin Pulec
78537aada6 Log: color output for MSW + small rewrite 2017-02-06 17:18:45 +01:00
Martin Pulec
8beab28cac Log: use write and lock internally 2017-02-06 17:18:45 +01:00
Martin Pulec
e4a31eec9f Small fixes
* format string in debug
* quit SDL subsystem
* some assertions in src/video_frame.c to check allocation success
2016-10-06 09:18:31 +02:00
Martin Pulec
3b1ce04581 Debug output: timestamps with ms granularity 2016-05-02 11:39:39 +02:00
Martin Pulec
655d5917e3 Improved logging
Some optimalizations + print timestamps in verbose and debug mode.
2015-09-26 21:26:29 +02:00
Martin Pulec
cecf08ac97 Various fixes 2015-07-14 17:15:29 +02:00
Martin Pulec
966751bc26 Renamed log level panic to fatal 2015-07-13 13:09:47 +02:00
Martin Pulec
715dca1bc3 Displays and capturers use now log_msg() for periodic messages 2015-07-13 11:09:37 +02:00
Martin Pulec
625b5adc0f Rewritten logging a bit
Use logger + levels of verboseness.
2015-07-10 16:42:26 +02:00