Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
7bd6f77
feat: add internal log/slog backed logger
ivokub May 4, 2026
f360eb5
feat: passthrough old logger to new logger with deprecation
ivokub May 4, 2026
77faa02
docs: add log level info to README
ivokub May 4, 2026
346243c
feat: add zerolog adapter for compatibility
ivokub May 17, 2026
efcf114
feat: add trace log level
ivokub May 17, 2026
851b923
feat: use slog in icicle prover
ivokub May 17, 2026
72b769b
feat: add backend options for providing logger
ivokub May 17, 2026
27db43e
fix: use provided logger for icicle backend
ivokub May 17, 2026
c0850ec
feat: use provided logger in backend prove/verify
ivokub May 17, 2026
45d109f
feat: add backwards-compatible logger override in solver
ivokub May 18, 2026
8f50df7
chore: reduce log level for multiple hint registration
ivokub May 18, 2026
bad00b0
chore: use new logger for solver hint registration option
ivokub May 18, 2026
7183d13
chore: use new logger in solver checkSerialization
ivokub May 18, 2026
9ff470d
feat: use new logger in solver
ivokub May 18, 2026
4486cd7
chore: provide logger to solve in icicle
ivokub May 18, 2026
fc54dad
feat: add DisabledLogger option
ivokub May 18, 2026
d8159c7
feat: provide Logger() method in Compiler
ivokub May 19, 2026
e0993f5
chore: reduce override hint log level to trace (BSB hint)
ivokub May 19, 2026
f131215
feat: use compiler logger in widecommitter
ivokub May 19, 2026
527d6de
feat: use compiler logger in std
ivokub May 19, 2026
6f8fa99
feat: use new logger in profile
ivokub May 19, 2026
5df6cca
chore: only retrieve logger when needed
ivokub May 19, 2026
010895c
feat: support custom logger in test engine
ivokub May 19, 2026
a601cb7
feat: use new logger in unsafekzg
ivokub May 19, 2026
80035a2
feat: suppress logs in fuzzing test
ivokub May 19, 2026
7810dcb
fix: skip solver consistency for U64-only circuit
ivokub May 19, 2026
627ab0f
feat: provide logger in assert method
ivokub May 19, 2026
c209e58
feat: add trace logs in assertions
ivokub May 19, 2026
ee920c7
feat: use assert logger in Solidity logs
ivokub May 19, 2026
d612a67
test: update debug test
ivokub May 19, 2026
022e644
feat: remove format declarations
ivokub May 20, 2026
b0aa058
docs: update compilelogger interface
ivokub May 20, 2026
d1a9c12
feat: add slog linter
ivokub May 20, 2026
4ce496e
chore: update golangci-lint to latest to have new slog linter
ivokub May 20, 2026
6f6a6b7
chore: run go fix
ivokub May 20, 2026
164ec57
feat: use infinity for unset gomemlimit
ivokub May 20, 2026
adff367
fix: ensure trace logs source line
ivokub May 20, 2026
ea435c9
feat: add tracing logs in backends
ivokub May 20, 2026
1b71a18
feat: add logs for serialization steps
ivokub May 20, 2026
7200b2e
feat: log constraint system serialization
ivokub May 20, 2026
99096ee
feat: plonk serialization logs
ivokub May 20, 2026
548b79e
feat: mpcsetup log marshal with debug
ivokub May 20, 2026
1a58d1f
fix: avoid string formatting in slog
ivokub May 25, 2026
c84e602
Merge remote-tracking branch 'origin/master' into feat/slog-rebased
ivokub Jun 10, 2026
f9db470
chore: use new logger in ICICLE Groth16 dispatcher
ivokub Jun 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
env:
ABIGEN_VERSION: v1.14.8
GO_VERSION: 1.25.x # NB! when updating also update matrix, we cannot refer to env variables in the matrix
GOLANGCI_LINT_VERSION: v2.10.1
GOLANGCI_LINT_VERSION: v2.12.2

jobs:
staticcheck:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:
env:
ABIGEN_VERSION: v1.14.8
GO_VERSION: 1.25.x # NB! when updating also update matrix, we cannot refer to env variables in the matrix
GOLANGCI_LINT_VERSION: v2.10.1
GOLANGCI_LINT_VERSION: v2.12.2

jobs:
staticcheck:
Expand Down
10 changes: 10 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ linters:
- govet
- ineffassign
- misspell
- sloglint
settings:
staticcheck:
checks:
Expand All @@ -20,6 +21,15 @@ linters:
excludes:
- G115
- G602
sloglint:
attr-only: true
no-mixed-args: true
static-msg: true
no-global: all
custom-funcs:
- name: github.com/consensys/gnark/internal/logger.Trace
msg-pos: 1
args-pos: 2
exclusions:
generated: disable
presets:
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ go run ./examples/cubic

To design your first circuit, follow the tutorial in [`gnark` User Documentation].

## Logging

`gnark` reads `GNARK_LOG_LEVEL` to configure internal logs:

- `trace`: logs all records and includes source locations.
- `debug`: logs debug records and startup runtime/build metadata.
- `info`: logs info records and above. This is the default.
- `warning` or `warn`: logs warning records and above.
- `error`: logs error records only.
- `quiet` or `none`: disables logs.

When built with the `debug` build tag and `GNARK_LOG_LEVEL` is unset, the default level is `debug`.

## Supported Proving Systems and Curves

`gnark` currently supports:
Expand Down
Loading
Loading