Miodrag Milanovic
709e780fe7
logger: add highlighted text and fix formatting
2026-09-24 09:05:39 +02:00
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
1812562cc6
logger: non-fatal is returning
2026-09-16 10:54:26 +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
caad7779e0
log: propagate format information
2026-08-20 17:30:44 +02:00
Miodrag Milanovic
bd1c3942aa
log: remove non-useful/non-used functionality
2026-08-20 15:19:36 +02:00
Miodrag Milanovic
f63d90003e
log: not needed anymore after using singleton
2026-08-20 09:16:28 +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
cbbd8c0dfd
log: convert all to sinks
2026-08-14 11:55:46 +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
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
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
Robert O'Callahan
638e904f91
Remove cover() coverage tracking
2025-12-04 16:27:13 +01:00
Robert O'Callahan
7f9de6e48f
Make coverage data thread-safe
2025-11-25 21:46:48 +00:00
Jannis Harder
e546f3b8f0
Merge pull request #5355 from rocallahan/deprecate-logv_file_error
...
Deprecate `logv_file_error()`
2025-09-22 14:23:55 +02:00
Mohamed Gaber and George Rennie
1fa5ceee8c
pyosys: restore remaining log functions
...
Co-authored-by: George Rennie <[email protected] >
2025-09-20 16:14:07 +01:00
Robert O'Callahan
64ffcbc394
Deprecate logv_file_error()
2025-09-16 23:26:38 +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
Robert O'Callahan
2a2c586e2c
Make log_experimental() just take an std::string, since it doesn't need to be varargs.
2025-09-09 15:41:03 +02:00
Robert O'Callahan
25cba6181e
Make log_warning()/log_warning_noprefix() use variadic templates.
2025-09-09 15:41:03 +02:00
Robert O'Callahan
66d2c2af08
Make log_header() use variadic templates.
2025-09-09 15:41:03 +02:00
Robert O'Callahan
d34ac0c87d
Make log() use the FmtString infrastructure.
...
Now `log()` supports `std::string`.
We have to fix a few places where the format parameter was not a compile time constant.
This is mostly trivial.
2025-09-09 15:41:03 +02:00
Robert O'Callahan
3f69a768f4
Hide public logv_ variant declarations that don't need to be public
2025-09-09 15:41:03 +02:00
Emil J. Tywoniak
41107e5473
log: add -expect types prefix-log, prefix-warning, prefix-error
2025-06-16 21:26:08 +02:00
Emil J. Tywoniak
a16227b209
Revert "Change the implementation of log_debug in kernel/log.h from a macro function to a normal function."
...
This reverts commit 15cfce061a .
2025-06-06 15:14:40 +02:00
RonxBulld
15cfce061a
Change the implementation of log_debug in kernel/log.h from a macro function to a normal function.
2025-04-29 22:43:10 +08:00
Emil J. Tywoniak
d071489ab1
hashlib: redo interface for flexibility
2024-12-18 14:49:25 +01:00
Jannis Harder
c73c8a39cf
kernel/log: Add log_str helper for custom log_* functions/overloads
...
When implementing custom log_... functions or custom overloads for the
core log functions like log_signal it is necessary to return `char *`
that are valid long enough.
The log_... functions implemented in log.cc use either `log_id_cache` or
`string_buf` which both are cleared on log_pop.
This commit adds a public `log_str` function which stores its argument
in the `log_id_cache` and returns the stored copy, such that custom
log functions outside of log.cc can also create strings that remain
valid until the next `log_pop`.
2024-08-21 10:58:39 +01:00