Commit Graph
165 Commits
Author SHA1 Message Date
Miodrag Milanovic 6557982d0a logger: make log_verific_callback simple 2026-09-22 13:15:32 +02:00
Miodrag Milanovic b8bfd05a93 logger: few more cleanups 2026-09-16 13:10:26 +02:00
Miodrag Milanovic 3384d5f099 logger: fix order 2026-09-16 11:41:34 +02:00
Miodrag Milanovic 32ef29fafb logger: added non-fatal errors and update verific logging 2026-09-16 09:24:46 +02:00
Miodrag Milanovic 18239a6fbb logger: add LogSourceLocation 2026-09-15 14:29:36 +02:00
Miodrag Milanovic 726aff678f log: remove log_ prefix and unified some namings 2026-08-31 11:20:21 +02:00
Miodrag Milanovic 09c227b0a7 log_stderr_sink_forced since it is external sink configuration 2026-08-31 10:34:45 +02:00
Miodrag Milanovic cdb5ff5f99 log: keep log_debug a macro 2026-08-31 08:25:47 +02:00
Miodrag Milanovic b3e25aea62 log: couple of fixes 2026-08-26 12:27:29 +02:00
Miodrag Milanovic a3cc43277f log: added log_deprecated 2026-08-26 08:40:12 +02:00
Miodrag Milanovic 14f85ce38e log: updating review point 2026-08-21 13:25:47 +02:00
Miodrag Milanovic 900fd36eec log: small cleanup 2026-08-21 09:19:56 +02:00
Miodrag Milanovic 01f63a6367 log: header is one message, but only content is compared in match 2026-08-21 08:12:07 +02:00
Miodrag Milanovic caad7779e0 log: propagate format information 2026-08-20 17:30:44 +02:00
Miodrag Milanovic 17c2846cda log: first line should have printed timestamp 2026-08-20 15:29:43 +02:00
Miodrag Milanovic bd1c3942aa log: remove non-useful/non-used functionality 2026-08-20 15:19:36 +02:00
Miodrag Milanovic 3bd81c2bd2 log: make initial time as before and some cleanup 2026-08-19 17:25:13 +02:00
Miodrag Milanovic 2e113f5eff log: create LogManager singleton and move implementation 2026-08-19 15:59:46 +02:00
Miodrag Milanovic b17b5a19e0 log: fix some functionality and wrappers 2026-08-14 12:23:25 +02:00
Miodrag Milanovic cbbd8c0dfd log: convert all to sinks 2026-08-14 11:55:46 +02:00
Miodrag Milanovic bd5c524dc6 log: do it over callback so we can experiment 2026-08-13 12:37:58 +02:00
Miodrag Milanovic 14afc00862 log: Refactor code a bit more 2026-08-13 09:22:01 +02:00
Sean Luchen 8d6be2467b Add LogSink & LogMessage classes for a more robust sink solution.
Signed-off-by: Sean Luchen <[email protected]>
2026-08-13 09:01:15 +02:00
Sean Luchen 2bcd69d12d Fix tests/various/logger_cmd_error.sh. 2026-08-13 09:01:15 +02:00
Sean Luchen 499ecb3ee3 Logging: Add log stream that only get sent warning+ logs. 2026-08-13 09:01:15 +02:00
Miodrag Milanovic 97e2600e5c Removed rewrite leftovers from log 2026-06-29 08:32:44 +02:00
Miodrag Milanovic 102f008194 Remove EMSCRIPTEN leftovers 2026-06-05 10:03:27 +02:00
Catherine a727e7f6e7 Migrate build system to CMake
See #5895 for details.

This commit does not include CI or documentation changes.
2026-06-03 08:58:10 +00:00
Miodrag Milanovic 75dcbe03c6 Convert RTLIL::unescape_id of IdString to unescape() 2026-05-16 19:49:45 +02:00
Codexplorer e41b969da2 Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
Robert O'Callahan bd7f2d9ba4 Make log_error() work in a Multithreaded context.
`log_error()` causes an exit so we don't have to try too hard here. The main
thing is to ensure that we normally are able to exit without causing a stack
overflow due to recursive asserts about not being in a `Multithreaded` context.
2026-03-06 02:03:21 +00:00
Emil J. Tywoniak 8e2038c419 Use digit separators for large decimal integers 2026-01-13 16:38:12 +01:00
Emil J 5594b817cd Merge pull request #5524 from rocallahan/single-thread-log
Check that we don't use logging during multithreading
2025-12-10 13:54:09 +01:00
Robert O'Callahan 638e904f91 Remove cover() coverage tracking 2025-12-04 16:27:13 +01:00
Robert O'Callahan 7e75200b2a Check that we don't use logging during multithreading 2025-11-29 22:47:23 +00:00
Robert O'Callahan 7f9de6e48f Make coverage data thread-safe 2025-11-25 21:46:48 +00:00
Jannis Harder 2dce50516b log: Print static message as fatal error for YOSYS_ABORT 2025-09-24 13:20:27 +02:00
Jannis Harder 86a46b9e5c log: Flush stdout before printing a fatal error to stderr
This hasn't been an issue when using -l to redirect or when stdout is
line buffered, explaining how we didn't notice this earlier, but for
`yosys ... > log` that extra flush is required to ensure all messages
preceding the fatal error are flushed.
2025-09-24 13:20:27 +02:00
Robert O'Callahan a7c46f7b4a Remove .c_str() calls from parameters to log_warning()/log_warning_noprefix() 2025-09-16 23:02:16 +00:00
Robert O'Callahan 8492c49f6c Remove string_buf by making log_signal() and log_const() return std::string
We only have to fix one caller in-tree so this probably has very low impact on out-of-tree plugins.

Resolves #5215
2025-09-16 03:06:17 +00:00
Jannis Harder b87a33d64e Merge pull request #5211 from rocallahan/remove-log_str
Remove `log_str()` functions and convert their `log_signal()` users t…
2025-09-12 14:10:47 +02:00
Robert O'Callahan e0ae7b7af4 Remove .c_str() calls from log()/log_error()
There are some leftovers, but this is an easy regex-based approach that removes most of them.
2025-09-11 20:59:37 +00:00
Robert O'Callahan c7017f7f79 Remove log_str() functions and convert their log_signal() users to return std::string
This is a small but easy step towards removing the `log_id_cache`.
See issue #5210.
2025-09-11 04:00:49 +00:00
Robert O'Callahan a137d03c32 Make log_cmd_error() use variadic templates. 2025-09-09 15:41:03 +02:00
Robert O'Callahan 243f5f5201 Make log_file_error() use variadic templates. 2025-09-09 15:41:03 +02:00
Robert O'Callahan 974455378b Make log_error() use variadic templates. 2025-09-09 15:41:03 +02:00
Robert O'Callahan c3924d0616 Move log_abort()'s call to log_error() into an out-of-line non-varargs function 2025-09-09 15:41:03 +02:00
Robert O'Callahan 1b5373de0d Move log_assert_worker()'s call to log_error() into an out-of-line non-varags function 2025-09-09 15:41:03 +02:00
Robert O'Callahan ea2bb5b79a Make log_file_info() use variadic templates. 2025-09-09 15:41:03 +02:00
Robert O'Callahan ec5f62e6d4 Make log_file_warning() use variadic templates. 2025-09-09 15:41:03 +02:00