@@ -54,29 +54,16 @@ fun testMethod(user: User) {
54
54
Will print a hierarchical visualization of the resolution process:
55
55
56
56
``` text
57
- > Resolving: for class your.app.User
58
- |-- > Resolving: for interface autoparams.generator.ConstructorResolver
59
- | |-- > Resolving: for interface autoparams.generator.ConstructorExtractor
60
- | | < Resolved(<1 ms): autoparams.generator.DefaultConstructorExtractor@5807ea46 for interface autoparams.generator.ConstructorExtractor
61
- | < Resolved(<1 ms): autoparams.generator.CompositeConstructorResolver@305289b3 for interface autoparams.generator.ConstructorResolver
62
- |
63
- |-- > Resolving: for Parameter java.util.UUID id
64
- | < Resolved(<1 ms): 2c792f91-2fb8-41c0-a7af-5bda64192949 for Parameter java.util.UUID id
65
- |
66
- |-- > Resolving: for Parameter java.lang.String email
67
- | |-- > Resolving: for class autoparams.generator.EmailAddressGenerationOptions
68
- | | < Resolved(<1 ms): EmailAddressGenerationOptions[domains=["test.com"]] for class autoparams.generator.EmailAddressGenerationOptions
69
- | < Resolved(1 ms): [email protected] for Parameter java.lang.String email
70
- |
71
- |-- > Resolving: for Parameter java.lang.String username
72
- | < Resolved(<1 ms): username24cbc137-4990-414b-9af7-39ae7ce1b437 for Parameter java.lang.String username
73
- < Resolved(1 ms): your.app.User@33e4068 for class your.app.User
57
+ User user (5ms)
58
+ ├─ UUID id → fbdf7aa8-1af7-4308-bc64-ee9dbfeba8d2 (1ms)
59
+ ├─ String email → [email protected] (2ms)
60
+ └─ String username → usernamec6962921-ab77-4dbc-a71d-6932a9faa5be (1ms)
74
61
```
75
62
76
- The log uses the following symbols to represent the resolution flow :
77
- - ` > ` indicates the start of a resolution attempt
78
- - ` |-- ` shows nested resolution steps
79
- - ` < ` indicates successful resolution
63
+ The log uses a tree structure to show the resolution hierarchy :
64
+ - Each level shows the query type and parameter name
65
+ - ` → ` indicates the generated value
66
+ - Time taken for each resolution is shown in parentheses
80
67
- Indentation levels represent the depth of the resolution chain
81
68
82
69
This logging is particularly valuable when working with:
0 commit comments