Commit Graph

135 Commits

Author SHA1 Message Date
Kevin Wan 4e71e95e44 chore: add comments (#4618) 2025-01-31 22:42:46 +08:00
JiChen 84db9bcd15 fix: global fields apply to Third-party log module (#4400) 2025-01-31 13:51:20 +00:00
Kevin Wan a32f6d7642 chore: add more tests for logx/logc (#4603) 2025-01-26 00:07:19 +08:00
Devin 64e8c94198 add Debugfn and Infofn to logx/logc #4595 (#4598) 2025-01-25 22:21:50 +08:00
Kevin Wan 896e1a2abb chore: refactor logx file time format (#4335) 2024-08-27 22:01:01 +08:00
kui 075817a8dd Add custom log file name date format (#4333) 2024-08-27 20:43:25 +08:00
Kevin Wan bd2033eb35 feat: support adding more writer, easy to write to console additionally (#4234)
Signed-off-by: kevin <wanjunfeng@gmail.com>
2024-07-07 23:31:27 +08:00
jiz4oh 424119d796 chore: fix the confused log level in comment (#4175) 2024-06-04 10:43:26 +00:00
Kevin Wan 962b36d745 fix: log concurrency problems after calling WithXXX methods (#4164) 2024-05-26 12:52:05 +08:00
Kevin Wan 057bae92ab fix: log panic on Error() or String() panics (#4136) 2024-05-10 12:49:34 +08:00
Kevin Wan 74331a45c9 fix: log panic when use nil error or stringer with Field method (#4130) 2024-05-10 00:31:36 +08:00
Kevin Wan 36088ea0d4 fix: avoid duplicate in logx plain mode (#4080) 2024-04-17 17:43:22 +08:00
Kevin Wan 159ecb7386 chore: fix warnings (#3989) 2024-03-08 22:35:17 +08:00
Kevin Wan 0f1d4c6bca optimize: improve performance on log disabled (#3916) 2024-02-17 14:55:48 +08:00
MarkJoyMa 32600f2619 fix: adjust log encode output mode (#3676) 2023-10-28 11:46:52 +00:00
Kevin Wan 944e76edb9 chore: refactor errors (#3651) 2023-10-20 14:58:38 +08:00
MarkJoyMa 151768ef82 feat: optimize logx print error (#3649) 2023-10-19 13:46:52 +00:00
Surav Shrestha 50581c7f5c docs fix typo in core/logx/readme.md (#3650) 2023-10-19 13:33:25 +00:00
Kevin Wan 804a56bd14 fix: optimize logx for less GC objects (#3627) 2023-10-15 23:37:45 +08:00
Kevin Wan 4222fd97bc chore: add test for logging rotate size (#3587) 2023-09-24 22:28:03 +08:00
xt-inking 5e435b6a76 fix: avoid losing logs before closing (#3573) 2023-09-17 11:38:53 +00:00
MarkJoyMa 4cbfdb3d74 feat: optimize must log add stack (#3384) 2023-06-30 01:11:03 +00:00
Kevin Wan 92e5819e91 opt: improve logx performance (#3371) 2023-06-25 15:41:28 +08:00
Kevin Wan efa6940001 chore: improve logx gzip (#3332) 2023-06-09 22:50:59 +08:00
Ron_haur da81d8f774 Fix: logx with Compress auto delete old logs (#3329)
Co-authored-by: haoran.ren <haoran.ren@mihoyo.com>
2023-06-08 11:08:04 +00:00
Kevin Wan 452c9dbcaf chore: add more tests (#3315) 2023-06-01 21:08:44 +08:00
Kevin Wan 44c8d6f269 chore: add more tests (#3304) 2023-05-30 23:27:27 +08:00
Kevin Wan 28d3905731 chore: add more tests (#3294) 2023-05-28 19:26:45 +08:00
guangwu ef26b39b4c misspelling (#3248) 2023-05-24 08:15:27 +00:00
soasurs 8762a3b7ba fix: Errorv should generate JSON Object for content field in log (#3222)
Signed-off-by: soasurs <soasurs@gmail.com>
2023-05-08 09:16:44 +00:00
Kevin Wan 42300a7d83 chore: add more tests (#3203) 2023-05-04 23:43:34 +08:00
Kevin Wan b028ed058d chore: change port to 6060 by default in devserver (#3191) 2023-05-01 11:18:15 +08:00
Kevin Wan a31256b327 chore: add more tests (#3187) 2023-04-29 22:59:07 +08:00
Kevin Wan 14caf5c799 chore: simplify tests with logtest (#3184) 2023-04-29 20:36:29 +08:00
Kevin Wan 60a13f1e53 chore: add more tests (#3018) 2023-03-12 20:42:50 +08:00
anqiansong 4620924105 Fix typo 2023-03-08 15:32:08 +00:00
kevin d65801f258 chore: add comments 2023-03-02 04:32:24 +00:00
Kevin Wan 99a7e6600d feat: use dependabot for goctl (#2869)
* feat: use dependabot for goctl

* chore: add more tests

* chore: remove temp file
2023-02-11 16:32:28 +08:00
Kevin Wan a019a1f59f fix: conf anonymous overlay problem (#2847) 2023-02-05 14:40:57 +08:00
Kevin Wan ae87114282 chore: change interface{} to any (#2818)
* chore: change interface{} to any

* chore: update goctl version to 1.5.0

* chore: update goctl deps
2023-01-24 16:32:02 +08:00
Kevin Wan 32a59dbc27 chore: refactor func name (#2804)
* chore: refactor func name

* chore: make plain log clearer
2023-01-18 17:20:45 +08:00
Kevin Wan 74e0676617 feat: add config to truncate long log content (#2767) 2023-01-09 09:39:30 +08:00
Kevin Wan e52dace416 chore: refactor (#2764) 2023-01-07 14:13:44 +08:00
chen quan dc260f196a refactor: simplify the code (#2763)
* refactor: simplify the code

* fix: fix data race

* refactor: simplify the code

* refactor: simplify the code
2023-01-07 13:32:56 +08:00
Kevin Wan 036328f1ea chore: update tests (#2741)
* chore: update tests

* chore: codecov on comments

* chore: codecov on comments
2023-01-03 18:02:35 +08:00
Xargin 1c544a26be use stat instead of disableStat (#2740) 2023-01-03 11:29:24 +08:00
chainlife 20a61ce43e logx conf add DisableStat (#2434)
Co-authored-by: sunsoft <sunsoft@qq.com>
2023-01-02 23:22:13 +08:00
Kevin Wan 9941055eaa feat: add trace.SpanIDFromContext and trace.TraceIDFromContext (#2654) 2022-12-02 11:00:44 +08:00
edieruby b1c3c21c81 fix: log currentSize should not be 0 when file exists and size is not 0 (#2639) 2022-11-25 23:48:32 +08:00
Kevin Wan 7eb6aae949 fix: potential slice append issue (#2560) 2022-10-28 08:14:03 +08:00