copyWith method

Logger copyWith({
  1. String? service,
  2. String? defaultModule,
  3. LoggerOptions? options,
  4. LokiOptions? lokiOptions,
  5. LoggerFilter? filter,
})

Implementation

Logger copyWith({
  String? service,
  String? defaultModule,
  LoggerOptions? options,
  LokiOptions? lokiOptions,
  LoggerFilter? filter,
}) =>
    Logger(
      service: service ?? this.service,
      defaultModule: defaultModule ?? this.defaultModule,
      options: options ?? this.options,
      lokiOptions: lokiOptions ?? this.lokiOptions,
      filter: filter ?? this.filter,
    );