├── .github └── workflows │ └── ci.yaml ├── .golangci.yaml ├── LICENSE ├── README.md ├── behavioral-tests ├── .gitignore ├── args-and-signals │ ├── custom-fake-server.sh │ ├── custom-run.sh │ └── expected.log ├── custom │ ├── expected.log │ └── pplog.env ├── default │ └── expected.log ├── fake-server.sh ├── pipe-mode │ ├── custom-run.sh │ └── expected.log └── run.sh ├── cmd └── pplog │ ├── const.go │ ├── main.go │ ├── run.go │ ├── run_common.go │ └── run_nosubproc.go ├── codecov.yml ├── go.mod ├── go.sum └── slogtotext ├── example_slog_test.go ├── example_test.go ├── flat.go ├── flat_test.go ├── formatter.go ├── formatter_test.go ├── reader.go ├── reader_test.go ├── xjson.go ├── xjson_test.go ├── xxjson.go └── xxjson_test.go /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.golangci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/.golangci.yaml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/README.md -------------------------------------------------------------------------------- /behavioral-tests/.gitignore: -------------------------------------------------------------------------------- 1 | output.log 2 | -------------------------------------------------------------------------------- /behavioral-tests/args-and-signals/custom-fake-server.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/behavioral-tests/args-and-signals/custom-fake-server.sh -------------------------------------------------------------------------------- /behavioral-tests/args-and-signals/custom-run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/behavioral-tests/args-and-signals/custom-run.sh -------------------------------------------------------------------------------- /behavioral-tests/args-and-signals/expected.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/behavioral-tests/args-and-signals/expected.log -------------------------------------------------------------------------------- /behavioral-tests/custom/expected.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/behavioral-tests/custom/expected.log -------------------------------------------------------------------------------- /behavioral-tests/custom/pplog.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/behavioral-tests/custom/pplog.env -------------------------------------------------------------------------------- /behavioral-tests/default/expected.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/behavioral-tests/default/expected.log -------------------------------------------------------------------------------- /behavioral-tests/fake-server.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/behavioral-tests/fake-server.sh -------------------------------------------------------------------------------- /behavioral-tests/pipe-mode/custom-run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/behavioral-tests/pipe-mode/custom-run.sh -------------------------------------------------------------------------------- /behavioral-tests/pipe-mode/expected.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/behavioral-tests/pipe-mode/expected.log -------------------------------------------------------------------------------- /behavioral-tests/run.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/behavioral-tests/run.sh -------------------------------------------------------------------------------- /cmd/pplog/const.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | const buffSize = 32768 4 | -------------------------------------------------------------------------------- /cmd/pplog/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/cmd/pplog/main.go -------------------------------------------------------------------------------- /cmd/pplog/run.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/cmd/pplog/run.go -------------------------------------------------------------------------------- /cmd/pplog/run_common.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/cmd/pplog/run_common.go -------------------------------------------------------------------------------- /cmd/pplog/run_nosubproc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/cmd/pplog/run_nosubproc.go -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/codecov.yml -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/go.sum -------------------------------------------------------------------------------- /slogtotext/example_slog_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/slogtotext/example_slog_test.go -------------------------------------------------------------------------------- /slogtotext/example_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/slogtotext/example_test.go -------------------------------------------------------------------------------- /slogtotext/flat.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/slogtotext/flat.go -------------------------------------------------------------------------------- /slogtotext/flat_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/slogtotext/flat_test.go -------------------------------------------------------------------------------- /slogtotext/formatter.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/slogtotext/formatter.go -------------------------------------------------------------------------------- /slogtotext/formatter_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/slogtotext/formatter_test.go -------------------------------------------------------------------------------- /slogtotext/reader.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/slogtotext/reader.go -------------------------------------------------------------------------------- /slogtotext/reader_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/slogtotext/reader_test.go -------------------------------------------------------------------------------- /slogtotext/xjson.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/slogtotext/xjson.go -------------------------------------------------------------------------------- /slogtotext/xjson_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/slogtotext/xjson_test.go -------------------------------------------------------------------------------- /slogtotext/xxjson.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/slogtotext/xxjson.go -------------------------------------------------------------------------------- /slogtotext/xxjson_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michurin/human-readable-json-logging/HEAD/slogtotext/xxjson_test.go --------------------------------------------------------------------------------