1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-10-05 19:30:59 +00:00

feat: add json logger output (#1026)

* feat: add json logger output

This will allow to format log output as json.
This is helpful in cases where act is not executed on a 'local' machine.

* refactor: use runner config

Using the runner config to configure logging is cleaner.

Co-authored-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
Markus Wolf 2022-03-14 16:33:11 +01:00 committed by GitHub
parent 282186e2e0
commit 300b62f1aa
5 changed files with 70 additions and 31 deletions

View file

@ -38,6 +38,7 @@ type Input struct {
autoRemove bool
artifactServerPath string
artifactServerPort string
jsonLogger bool
}
func (i *Input) resolve(path string) string {