Requirements
- Java 17 or later for
journal-core - Maven 3.9 or the Maven Wrapper
1. Add journal-core
2. Configure local storage
Configure storage before creating a run:InMemoryStorage, so a run is not durable unless you configure storage.
3. Record a run
Run implements AutoCloseable.
Normal closure produces FINISHED; call run.fail(exception) to record FAILED explicitly.
4. Inspect the files
The example produces this layout:events.jsonl line is a schema header.
Each following line is one event and carries an @type discriminator.
5. Isolate tests
Use the in-memory backend and reset global state around each test:Next steps
Core concepts
Learn what is persisted and what is derived.
Analyze runs
Query the generated event files with DuckDB.