LogOutputChannel constructor

LogOutputChannel({
  1. LogLevel? logLevel,
  2. Event<LogLevel>? onDidChangeLogLevel,
  3. void trace(
    1. String, [
    2. Iterable?
    ])?,
  4. void debug(
    1. String, [
    2. Iterable?
    ])?,
  5. void info(
    1. String, [
    2. Iterable?
    ])?,
  6. void warn(
    1. String, [
    2. Iterable?
    ])?,
  7. void error(
    1. Object, [
    2. Iterable?
    ])?,
  8. String? name,
  9. void append(
    1. String
    )?,
  10. void appendLine(
    1. String
    )?,
  11. void replace(
    1. String
    )?,
  12. void clear()?,
  13. void hide()?,
  14. void dispose()?,
})

Implementation

factory LogOutputChannel({
  _i3.LogLevel? logLevel,
  _i3.Event<_i3.LogLevel>? onDidChangeLogLevel,
  void Function(
    _i2.String, [
    _i2.Iterable<_i2.dynamic>?,
  ])? trace,
  void Function(
    _i2.String, [
    _i2.Iterable<_i2.dynamic>?,
  ])? debug,
  void Function(
    _i2.String, [
    _i2.Iterable<_i2.dynamic>?,
  ])? info,
  void Function(
    _i2.String, [
    _i2.Iterable<_i2.dynamic>?,
  ])? warn,
  void Function(
    _i2.Object, [
    _i2.Iterable<_i2.dynamic>?,
  ])? error,
  _i2.String? name,
  void Function(_i2.String)? append,
  void Function(_i2.String)? appendLine,
  void Function(_i2.String)? replace,
  void Function()? clear,
  void Function()? hide,
  void Function()? dispose,
}) =>
    LogOutputChannel._(
      logLevel: logLevel?.name,
      onDidChangeLogLevel: onDidChangeLogLevel ?? _i6.undefined,
      trace: trace == null
          ? null
          : _i5.allowInterop((
              _i2.String v0, [
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ]) =>
              trace(
                v0,
                [
                  a0,
                  a1,
                  a2,
                  a3,
                  a4,
                  a5,
                  a6,
                  a7,
                  a8,
                  a9,
                ],
              )),
      debug: debug == null
          ? null
          : _i5.allowInterop((
              _i2.String v0, [
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ]) =>
              debug(
                v0,
                [
                  a0,
                  a1,
                  a2,
                  a3,
                  a4,
                  a5,
                  a6,
                  a7,
                  a8,
                  a9,
                ],
              )),
      info: info == null
          ? null
          : _i5.allowInterop((
              _i2.String v0, [
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ]) =>
              info(
                v0,
                [
                  a0,
                  a1,
                  a2,
                  a3,
                  a4,
                  a5,
                  a6,
                  a7,
                  a8,
                  a9,
                ],
              )),
      warn: warn == null
          ? null
          : _i5.allowInterop((
              _i2.String v0, [
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ]) =>
              warn(
                v0,
                [
                  a0,
                  a1,
                  a2,
                  a3,
                  a4,
                  a5,
                  a6,
                  a7,
                  a8,
                  a9,
                ],
              )),
      error: error == null
          ? null
          : _i5.allowInterop((
              _i2.Object v0, [
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ]) =>
              error(
                v0,
                [
                  a0,
                  a1,
                  a2,
                  a3,
                  a4,
                  a5,
                  a6,
                  a7,
                  a8,
                  a9,
                ],
              )),
      name: name,
      append: append == null ? null : _i5.allowInterop(append),
      appendLine: appendLine == null ? null : _i5.allowInterop(appendLine),
      replace: replace == null ? null : _i5.allowInterop(replace),
      clear: clear == null ? null : _i5.allowInterop(clear),
      hide: hide == null ? null : _i5.allowInterop(hide),
      dispose: dispose == null ? null : _i5.allowInterop(dispose),
    );