85 Commits

Author SHA1 Message Date
Delyan Angelov
55b1236421
log: use @[noinline] for level_from_tag/1 and target_from_label/1 to avoid triggering panics for programs using log, compiled with -prod and -cc gcc>10 (fix #24874) 2025-07-10 14:43:42 +03:00
Delyan Angelov
bb7f9f2562
log: allow for -d log_default_level=debug, to change the default log level for programs and tests, that do not explicitly call log.set_level/1 themselves. 2025-07-08 17:08:43 +03:00
xieke
81e84a6a01
log: fix Unhandled Exception on windows 7 (#24803) 2025-06-28 08:18:58 +03:00
Jose Mendoza
a5f400ee77
parser, ast, fmt: convert "hello".str => c"hello" (fix #24635) (#24652) 2025-06-08 11:44:38 +03:00
kbkpbot
13645e2456
log: add local time / utc time selection support (#24268) 2025-04-20 03:25:13 +03:00
Xyndra
f7e062c91a
log: remove the notice about the stdout -> stderr migration (#23837) 2025-03-01 23:27:22 +02:00
Delyan Angelov
f3d2eb1c24
log: fix valgrind_test.v failure 2025-02-24 19:21:47 +02:00
Delyan Angelov
b9d057118c
log: fix panic on mutex destroy, when exiting a program, while a thread is still logging 2025-02-24 18:28:27 +02:00
Delyan Angelov
319eb83525
log: add log.use_stdout(), use it to silence the transition note for the most commonly used V tools/examples (#23642) 2025-02-03 12:37:57 +02:00
Delyan Angelov
3bc862dbb0
log,sync: fix macos CI failure when log.ThreadSafeLog is used explicitly in v download (#23613) 2025-01-30 11:41:23 +02:00
gechandesu
4e68a86025
breaking,log: set stderr as default log output, add .set_output_stream() to allow for opting in the old default of stdout (#23444) 2025-01-21 19:13:21 +02:00
Delyan Angelov
e983d75b64
markused,builtin,strconv,vlib: reduce generated C sizes for compilers != tcc, for short programs, by simplifying the generation of backtraces, and reducing string interpolations in panics (#23380) 2025-01-06 08:23:56 +02:00
Delyan Angelov
64b6157950
Revert "log: set stderr as default log output, add .set_output_stream() (#23296)"
This reverts commit a47b7298c4b3138ce895c5241c1620a46604cc6b.
2024-12-28 22:20:32 +02:00
gechandesu
a47b7298c4
log: set stderr as default log output, add .set_output_stream() (#23296) 2024-12-28 21:54:06 +02:00
Leo Developer
aeaf607259
log: tag log.fatal with @[noreturn] (#22986) 2024-11-27 16:29:13 +03:00
Delyan Angelov
5bba92a65a
vlib: remove modules/functions/fields, deprecated in 2023 (#22750) 2024-11-17 20:09:21 +02:00
Hitalo Souza
d7d88b9f0f
log,time: improve performance for writing a line to a log, add Time.format_rfc3339_micro/0 (#22662) 2024-10-27 12:00:16 +02:00
yuyi
da3112e545
all: replace fn name '@xxx' with 'xxx' (#22506) 2024-10-12 22:17:02 +03:00
yuyi
79ee4ae046
fmt: fix alignment of enumeration types (#21999) 2024-08-07 15:46:50 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
Delyan Angelov
a8d0cdd31b
all: replace usages of C.atexit(cb) with at_exit(cb) or {} (part 2) (#21263) 2024-04-12 13:51:18 +03:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
Delyan Angelov
68bd9a9549
log: implement set_always_flush/1 for log.Log, log.ThreadSafeLog and log.Logger (#20698) 2024-02-01 07:51:52 +02:00
kbkpbot
4ceb550e88
log: add support for l.set_short_tag/1 (#20652) 2024-01-25 10:47:00 +02:00
kbkpbot
69b0d1cfe9
log: enhance log time format setting (#20484) 2024-01-11 19:17:23 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Delyan Angelov
8b71639f1f ci: skip file_log_test.v on windows 2023-11-14 08:48:19 +02:00
Kim Shrier
b119941778
log: add a reopen method, to enable cleaner log rotation (#19854) 2023-11-13 18:10:58 +02:00
Turiiya
eab77ccb9a
checker: turn warning for var and param module name duplicates into error (#19645) 2023-11-01 08:20:57 +02:00
Turiiya
690ec7d3a5
all: fix typos (#19693) 2023-10-30 03:28:34 +02:00
Larpon
95509cf8fb
all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00
Turiiya
fc2e75503f
log: use fn param names that differ from the imported module names in log_test.v (#19646) 2023-10-25 10:28:20 +03:00
Delyan Angelov
6fb4a481f8
log: improve the most common use case (#19242) 2023-08-31 06:44:11 +03:00
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
Alexander Medvednikov
e81e0ac708 fmt: replace go with spawn 2022-11-05 10:46:40 +03:00
bogen85
c684dd8c9b
log: mark log.fatal as [noreturn] (#16129) 2022-10-21 10:33:49 +03:00
Subhomoy Haldar
3af12271fb
log: add target_from_label and unit tests (#15538) 2022-08-26 07:09:48 +03:00
Sandro Martini
51ef8b62ba
log: cleanup tests (#15320) 2022-08-02 18:01:49 +03:00
Delyan Angelov
a35356758c
log: make set_level(level Level) part of the log.Logger interface too (fix for discordv) 2022-08-01 15:09:32 +03:00
Sandro Martini
054c8b1f13
log: update Logger interface, so that Log is usable even as a Logger instance; add a test to ensure it (#13376) 2022-02-05 22:09:55 +02:00
jeffmikels
a60b381d5e
docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
Alexander Medvednikov
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
Sandro Martini
80995f3a2d
log: improve logging interface (#12886) 2021-12-18 12:38:43 +02:00
trollkarlen
b52f79e137
log: add temporary get_level() (#11946) 2021-09-23 12:05:11 +03:00
Lukas Neubert
9957e5a2c5
log: unify output order between cli and file (#9693) 2021-04-12 09:38:47 +03:00
Delyan Angelov
af14c808a3
log: make .send_output public 2021-04-02 13:53:34 +03:00
Delyan Angelov
bcb3992406
log: implement .log_to_console_too() method 2021-04-02 10:12:52 +03:00