Commit Graph

35 Commits

Author SHA1 Message Date
Martin Piatka
07f245c5ec logging: Use enum for timestamp mode 2022-07-29 13:03:27 +02:00
Martin Piatka
31b39db713 logging: Add missing assert 2022-07-29 13:03:26 +02:00
Martin Pulec
a22ff7a5f1 lavc: debug dump spot for converted AVFrame
+ change first parameter of serialize callback to (const void *)
+ renamed "lavd-uncompressed" to "lavd-avframe" - uncompressed is vague
  since there are multiple forms of uncompressed - avframe, ultragrid
  pixfmt...
2021-11-26 12:19:17 +01:00
Martin Pulec
1b3b27eb7c Updated copyright dates for modified files 2021-11-08 15:43:14 +01:00
Martin Pulec
c84d62f4ed Logger: oneshot messages suppport 2021-11-05 10:39:33 +01:00
Martin Pulec
04734e0ebc Define ug_strerror for thread-safe strerror abstraction 2021-10-26 10:49:07 +02:00
Martin Pulec
940399988a Lavd: option to dump decompressed frame 2021-10-22 09:21:52 +02:00
Martin Pulec
a779d96c6d Logger: fixed wrong value message 2021-10-18 13:26:57 +02:00
Martin Pulec
8f1074cd74 GCC 11 warning workaround
GCC 11 gives incorrect warning for unintialized strerror_buf on
strerror_buf.size(), which is, however, compile-time constant. As a
workaround a separate size constant is used.
2021-10-14 10:52:47 +02:00
Martin Pulec
1fe5d8af1f Fixed parsing of log level debug2 2021-08-05 09:28:55 +02:00
Martin Pulec
34c8055dc8 Small include changes
To allow some files compile outside UltraGrid (without config.h) for
standalone convert.
2021-06-14 16:57:14 +02:00
Martin Pulec
f8fd2f872e Logger: option to enable/disable timestamps 2021-05-26 16:15:39 +02:00
Martin Pulec
f06204262b Use environment variable ULTRAGRID_VERBOSE 2021-05-26 14:48:53 +02:00
Martin Pulec
23c887d0a3 Debug: allow ANSI colors for MSYS
Assume that MSYS is capable of displaying ANSI sequences even if
setWinTermAnsiColors fails.
2021-05-20 13:42:15 +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
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