Enabling it
Nothing to enable.NexusConfig.logger defaults to the SLF4J logger named dev.westyx.nexus,
and SLF4J is a no-op unless the application binds a backend - so an application that has not
asked for logging stays silent.
To route SDK output somewhere specific, pass your own logger:
What is logged
Values are passed as structured parameters, never interpolated into the message:
Secret hygiene
No log record carries a secret value, a secret key name, an API key, a session JWT or a workload OIDC token. Where a key must be identified - a file secret that could not be materialised, for instance - only a truncated hash of the key appears. This is enforced, not just intended.LoggingSecretLeakTest drives a sync carrying both a text
and a file-type secret, a secret read, a file-path read and a WIF token exchange through a
capturing logger with every level enabled, then fails if any seeded value, key name, API key
or token appears anywhere in the output - message, parameters or stack trace.
NexusConfig.toString() also redacts apiKey, since a config object is often printed while
debugging.
Observer failures
ANexusObserver callback that throws is absorbed by the SDK’s guarded dispatcher and reported
here at warn, naming the callback:
