Skip to content

Improvements for bug reports and logging#969

Merged
mhutchinson merged 1 commit into
transparency-dev:mainfrom
mhutchinson:posixBase
May 27, 2026
Merged

Improvements for bug reports and logging#969
mhutchinson merged 1 commit into
transparency-dev:mainfrom
mhutchinson:posixBase

Conversation

@mhutchinson
Copy link
Copy Markdown
Contributor

Output the options passed into the appender using slog.

Conformance now has ability to output in JSON instead of only text.

go run ./cmd/conformance/posix \
  --storage_dir=${LOG_DIR} \
  --listen=:2025 --log_format=json

{"time":"2026-05-27T10:05:43.143037492Z","level":"INFO","msg":"Creating new appender","options":{"batchMaxAge":1000000000,"batchMaxSize":256,"pushbackMaxOutstanding":4096,"maxEntrySize":65535,"checkpointInterval":1000000000,"checkpointRepublishInterval":60000000000,"garbageCollectionInterval":60000000000,"shutdownTimeout":60000000000,"primarySigner":"example.com/log/testdata"}}
go run ./cmd/conformance/posix \
  --storage_dir=${LOG_DIR} \
  --listen=:2025

time=2026-05-27T10:07:04.102Z level=INFO msg="Creating new appender" options.batchMaxAge=1s options.batchMaxSize=256 options.pushbackMaxOutstanding=4096 options.maxEntrySize=65535 options.checkpointInterval=1s options.checkpointRepublishInterval=1m0s options.garbageCollectionInterval=1m0s options.shutdownTimeout=1m0s options.primarySigner=example.com/log/testdata

Output the options passed into the appender using slog.

Conformance now has ability to output in JSON instead of only text.
```
go run ./cmd/conformance/posix \
  --storage_dir=${LOG_DIR} \
  --listen=:2025 --log_format=json

{"time":"2026-05-27T10:05:43.143037492Z","level":"INFO","msg":"Creating new appender","options":{"batchMaxAge":1000000000,"batchMaxSize":256,"pushbackMaxOutstanding":4096,"maxEntrySize":65535,"checkpointInterval":1000000000,"checkpointRepublishInterval":60000000000,"garbageCollectionInterval":60000000000,"shutdownTimeout":60000000000,"primarySigner":"example.com/log/testdata"}}
```

```
go run ./cmd/conformance/posix \
  --storage_dir=${LOG_DIR} \
  --listen=:2025

time=2026-05-27T10:07:04.102Z level=INFO msg="Creating new appender" options.batchMaxAge=1s options.batchMaxSize=256 options.pushbackMaxOutstanding=4096 options.maxEntrySize=65535 options.checkpointInterval=1s options.checkpointRepublishInterval=1m0s options.garbageCollectionInterval=1m0s options.shutdownTimeout=1m0s options.primarySigner=example.com/log/testdata
```
@mhutchinson mhutchinson requested a review from a team as a code owner May 27, 2026 10:31
@mhutchinson mhutchinson requested review from AlCutter and roger2hk May 27, 2026 10:31
@mhutchinson mhutchinson merged commit e5695aa into transparency-dev:main May 27, 2026
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants