Commit graph

65 commits

Author SHA1 Message Date
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
spaceface
b712af56fd
all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
Delyan Angelov
e5a84719ca
all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Swastik Baranwal
0081e5740d
checker: only allow != and == for enum (#7985) 2021-01-10 12:26:31 +02:00
yuyi
a481c1785b
log: fix log_to_file (#7955) 2021-01-08 12:26:37 +02:00
Larpon
4e73741673
log: document all functions, add missing copyright header (#7391) 2020-12-18 19:04:49 +02:00
Alexander Medvednikov
f534edc371 doc: replace os.base_dir with os.dir 2020-10-01 01:30:22 +02:00
Carlos Esquerdo Bernat
66b3fabeef
log: avoid the deprecated .is_opened() method (#6039) 2020-08-03 02:35:08 +03:00
Carlos Esquerdo Bernat
7a4c27bd08
log: add flush to log file (#5942) 2020-07-23 08:02:53 +03:00
yuyi
7f4cf08516
parser: check (mut f Foo) syntax 2020-05-17 13:51:18 +02:00
yuyi
9f4d498ff1
all: updateimport () and []array 2020-04-26 13:49:31 +02:00
Enzo Baldisserri
3e68e429b6
checker: avert if else is unnecessary 2020-04-25 21:51:44 +02:00
yuyi
4d5fe14968
log: fix example error 2020-04-06 17:22:53 +02:00
yuyi
2f27758a4b
os: realpath => real_path 2020-03-20 16:41:18 +01:00
yuyi
010f3efcf0
os: filename => file_name 2020-03-19 15:49:07 +01:00
yuyi
876b73f92c
os: join => join_path 2020-03-09 02:23:34 +01:00
yuyi
23b11c84b1
os api: basedir => base_dir 2020-03-08 15:43:56 +01:00
yuyi
783dee1f48
os: merge with filepath 2020-03-07 22:26:26 +01:00
Major Taylor
d4b0de2dce
log: extended logging level names when printed 2020-02-29 14:31:59 +01:00