LogScope constructor

LogScope(
  1. LogController _controller,
  2. String name, {
  3. String? tag,
  4. Map<String, Object>? boundData,
  5. String? traceId,
  6. String? requestId,
  7. String? parentSpanId,
  8. DateTime clock()?,
})

Creates a LogScope bound to _controller with the given name.

Implementation

LogScope(
  this._controller,
  this.name, {
  this.tag,
  Map<String, Object>? boundData,
  String? traceId,
  String? requestId,
  String? parentSpanId,
  DateTime Function()? clock,
}) : _boundData = boundData,
     _traceId = traceId,
     _requestId = requestId,
     _parentSpanId = parentSpanId,
     _clock = clock ?? DateTime.now;