aws/internal/log

Leveled logging for the SDK runtime.

Quiet by default, a firehose on demand (see PHILOSOPHY.md and the Logging section of RULES.md). The SDK says nothing on the happy path and only what an operator must see when something fails; turn the logger up to debug and it narrates both paths in full.

This is a thin pass-through to OTP logger (via aws_log_ffi) — the idiomatic BEAM mechanism, mirroring how the AWS Rust SDK leaves the sink to the application. There is no SDK-specific level knob: the operator configures verbosity and destination the standard way.

Values

pub fn debug(message: fn() -> String) -> Nil

Log at debug — the firehose, off unless the logger level is debug. The message is a thunk so its (often expensive) construction is skipped entirely when debug is not enabled.

pub fn error(message: String) -> Nil

Log at error — unrecoverable, operator-must-see (credential chain exhausted, retries exhausted, the Lambda Runtime API gone fatal). Sparse, and on by default (outranks notice).

pub fn warning(message: String) -> Nil

Log at warning — notable but recovered (a retry fired, a credential provider was configured but failed). On by default (outranks notice).

Search Document