1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

47 Commits

Author SHA1 Message Date
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
Alexey
dced76d1a4 os, filepath: reorganize functions 2019-12-23 13:09:22 +03:00
Alexander Medvednikov
dc83e30a44 access modifiers: update tests/examples 2019-12-13 20:09:11 +03:00
Alexander Medvednikov
c8d111924d check unused and unmodified vars in all modules, not just main 2019-12-06 18:43:56 +03:00
Delyan Angelov
ec15bfb7d1 v test v => v test-compiler 2019-12-01 12:50:13 +03:00
_leif
ee52b4166f log: enum for logger level 2019-11-25 07:50:59 +03:00
ytakahashi
6a609cb046 log: make const/struct public 2019-10-28 18:53:02 +03:00
Don Alfons Nisnoni
ed55826686 log/net: switch => match 2019-10-27 09:45:03 +03:00
Delyan Angelov
e3389e8ec1 log: add seconds to terminal output too. 2019-08-30 13:06:02 +03:00
Julian Schurhammer
1864e92ff4 parser: disallow statements after a return, branch check $if, $else, switch, and loops correctly 2019-08-10 10:26:42 +02:00
Cody Ley-Han
06b8bd9382 Add a logger interface to the std modules 2019-08-07 08:06:53 +02:00
Mike 'Fuzzy' Partin
ff72d9104d log: added timestamps 2019-07-29 16:34:22 +02:00
yep84
94a599d630 log: allow file logging 2019-07-24 17:50:29 +02:00
Alexander Medvednikov
c35adbea91 vfmt fixes 2019-07-17 21:00:39 +02:00
archanpatkar
235a7ecd7f Restructured termcolor to term module 2019-07-01 17:26:23 +02:00
Alexander Medvednikov
4594d78bd6 move all vlib modules to vlib/ 2019-06-29 12:00:31 +02:00