Yt constructor

Yt(
  1. {LogOptions logOptions = const LogOptions(LogLevel.error, stackTraceLevel: LogLevel.off),
  2. LoggyPrinter printer = const PrettyPrinter(showColors: false)}
)

Implementation

Yt(
    {LogOptions logOptions = const LogOptions(
      LogLevel.error,
      stackTraceLevel: LogLevel.off,
    ),
    LoggyPrinter printer = const PrettyPrinter(
      showColors: false,
    )}) {
  Loggy.initLoggy(logPrinter: printer, logOptions: logOptions);

  addInterceptor(
    LoggingInterceptors(),
    position: ListPosition.end,
  );

  (dio.httpClientAdapter as IOHttpClientAdapter).onHttpClientCreate =
      (client) => httpClient;
}