withContext static method

Logger withContext(
  1. Context ctx
)

Creates a Logger instance configured with metadata from the ctx.

Implementation

static Logger withContext(Context ctx) {
  return Logger(<String, String>{'requestId': ctx.requestId});
}