Commit Graph

26 Commits

Author SHA1 Message Date
Martin Piatka
eab94c12c0 Remove some unused includes
Removes some unused includes reported by include-what-you-use
2021-06-08 15:22:25 +02:00
Martin Pulec
f8fd2f872e Logger: option to enable/disable timestamps 2021-05-26 16:15:39 +02:00
Martin Pulec
dd49b48b69 Added log_perror
Same as perror but uses the logger
2021-04-21 14:42:02 +02:00
Martin Pulec
dbc071fe81 Logger: fixed a leak 2021-04-19 16:59:25 +02:00
Martin Pulec
b888e09800 Key control: shortcut to control repeating of msgs 2020-11-13 14:50:29 +01:00
Martin Pulec
820d5c9c83 Logger: new line after last repeat count
To keep track about repetitions in output.
2020-11-05 09:26:09 +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
a36d5a008e Rang: force control
In order to control sequences work with ostringstream logger.
2020-11-05 09:07:04 +01:00
Martin Pulec
b1c96985d6 Logger: use ostringstream + clog 2020-11-05 09:06:07 +01:00
Martin Pulec
22da4e122b Logger: suppress some clang-tidy warning 2020-06-25 14:19:57 +02:00
Martin Pulec
508e33af1a rtpenc_h264.c: Missing config include
+ define ATTRIBUTE if not defined by config in debug
2019-11-23 13:07:51 +01:00
Martin Pulec
92a58c3f8c Indicate to compiler that color_out and log_msg are printf-alike
+ include config_* headers in some sources that don't (and include
  debug.h which now needs the ATTRIBUTE macro)
2019-11-21 16:51:03 +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
fa51f6e33c Fixed incorrectly fixed Coverity bugs 2019-11-12 22:34:18 +01:00
Martin Pulec
4c71573a89 Fixed first series of Coverity bugs 2019-11-09 17:20:37 +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
57fe2cef91 Added --param cmdline param to modify UG intenals
These options are now available:
decoder - to force user selected decoder (eg. libavcodec instead
of gpujpeg, which would be chosen by default)
drop-policy - to allow non-blocking put frame (effectively drops
frames that cannot be displayed immediately, eg. when display
frame rate is lower than video frame rate)
2016-04-19 13:10:55 +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
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
Martin Pulec
a0235a9dc1 add --verbose command line option 2013-08-07 17:50:32 +02:00
Martin Pulec
6d1af10e39 Miscellaneous fixes, mainly modules 2013-04-22 14:22:36 +02:00
Martin Pulec
9c3ce59988 RTP: IPv6 make complains more loud but do not fail 2013-04-04 10:34:53 +02:00
Martin Pulec
bb5b84d9ea Restructuralize directory structure
* content of ultragrid/ subdirector moved to root
2012-07-02 18:24:25 +02:00