1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-17 13:05:24 +00:00
Commit Graph

36 Commits

Author SHA1 Message Date
Jebbs
ebbf31f07e
improve commands (#648)
* stat show json refactor
> will show {} since scripts should expect it, its the json style of blank value

* combine statistics commands to one

* code optimize

* fix runtime flag

* remove json indent

* change overridden to override

* api bi -json

* convert stdin support
code optimize

* writeRow() code optimize
add stats tittle
revert back to restartlogger

* api log -restart

* follow log

* codeql

* move -json to shared flags

* flags optimize
* update flag descriptions
* change "-v" of "api bo" to duration
* change "-expire" of "tls cert" to days

* cmds short description optimize

* fix multiple log followers

* Format loader refactor
* "infra/conf/merge" refactor
* "LoadConfig" refactor
* add "infra/conf/mergers"
    * contribute to it will benifit `v2ray run`,`v2ray test`,`v2ray convert`
    * easily add new formats, by just adding a converter like json.FromTOML
* default format auto, to all cmds above
    * auto detect input format
    * mixed formats support
* better stdin behavior
    * don't wait if no content
    * don't use 'stdin:' placeholder
* `v2ray test` now behaves exactly the same with `v2ray run`, including stdin reading

* api ado, adi, rmo, rmi refactor
* support folders to files resolving, mixed formats
* remove remaining 'stdin:' placeholders

* fix tests
* os.Stdin.Stat() behaves different in platforms, removed

* code optimize

Co-authored-by: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2021-02-21 23:02:42 +08:00
loyalsoldier
d581fb9c00
Merge branch 'master' into v5 2021-02-17 08:07:12 +08:00
Loyalsoldier
f94dd11a8c
Chore: change module name (#677) 2021-02-17 04:31:50 +08:00
Jebbs
7c1ab06206
v5: Remove v2ctl & wv2ray (#488)
* remove v2ctl, wv2ray
* remove v2ctl, wv2ray build scripts
* remove infra/control/main
* remove !confonly flag
* remove ctlcmd package
* remove Confgi.Override func
* move commands package into main
2020-12-04 22:32:55 +08:00
loyalsoldier
784775f689
Refine code according to golangci-lint results 2020-10-11 19:22:46 +08:00
loyalsoldier
b181045b0c
Errorgen: support to run outside of GOPATH 2020-10-04 13:06:12 +08:00
vcptr
8854c7872f early inited log 2019-11-19 09:49:33 +08:00
Darien Raymond
1ab94fed79
optimize v2ctl size 2019-02-01 20:08:21 +01:00
Darien Raymond
30b5bffad4
support custom log handler 2018-12-06 17:37:05 +01:00
Darien Raymond
b9450d8475
Revert "use default logger for android and ios"
This reverts commit 9743380e2d.
2018-12-06 17:03:15 +01:00
Darien Raymond
9743380e2d
use default logger for android and ios 2018-12-06 14:40:45 +01:00
Darien Raymond
a5dcb0f13e
refactor dependency resolution 2018-10-21 10:27:13 +02:00
Darien Raymond
d730637239
Require Type() for Feature 2018-10-12 23:57:56 +02:00
Darien Raymond
091fa6ad23
use new errorgen 2018-09-30 23:08:41 +02:00
Darien Raymond
483a56c847
adjust lint settings 2018-05-26 00:47:51 +02:00
Darien Raymond
67f5292f38
fix lint errors 2018-05-25 23:20:24 +02:00
wuxiang
3f19d09878 update some comments 2018-04-03 17:11:54 +08:00
Darien Raymond
84f8192b61
fix default logger 2018-02-14 22:00:08 +01:00
Darien Raymond
c48fa50ab1
logger service 2018-02-14 17:35:09 +01:00
Darien Raymond
efcb567273
remove context in struct 2018-02-08 15:39:46 +01:00
Darien Raymond
68ef98a35d
remove unused code 2018-01-10 14:47:12 +01:00
Darien Raymond
2b8cc43cb4
fix a typo 2017-12-22 00:42:27 +01:00
Darien Raymond
11d726f9bf
refine log handlers 2017-12-22 00:41:40 +01:00
Darien Raymond
7078f23291
fix nil pointer on close(). 2017-12-20 00:09:52 +01:00
Darien Raymond
49056d22ac
remove unused function 2017-12-19 22:04:20 +01:00
Darien Raymond
49b270152a
register logger on start 2017-12-19 22:02:52 +01:00
Darien Raymond
f4c35db968
merge log into common log 2017-12-19 21:28:12 +01:00
Darien Raymond
742d9d25d1
migrate to new severity def 2017-12-10 23:33:23 +01:00
Darien Raymond
d43a23aa96
move error generator to common 2017-12-03 01:04:57 +01:00
Darien Raymond
2b80d096ff
trace only non nil error 2017-07-25 23:12:45 +02:00
Darien Raymond
a758e07339
fix a typo 2017-04-11 21:18:23 +02:00
Darien Raymond
4fa3c70429
simplify log handling 2017-04-10 15:03:10 +02:00
Darien Raymond
35248497d2
refactor error messages 2017-04-09 01:43:25 +02:00
Darien Raymond
75f5cb9afb
refactor log and error 2017-04-06 21:13:17 +02:00
Darien Raymond
fc31f9b94c
refactor error interface 2017-04-06 15:13:09 +02:00
Darien Raymond
f046f334cd
move common/log to app/log 2017-02-01 21:35:40 +01:00