logger icon indicating copy to clipboard operation
logger copied to clipboard

Colors still not working??

Open MilanObrenovic opened this issue 4 years ago • 3 comments
trafficstars

2 years later the colors are still not working in intellij..? did someone find a fix for this?

MilanObrenovic avatar Aug 14 '21 20:08 MilanObrenovic

I am running Android Studio Arctic Fox |2020.3.1 Patch 2:

  • "Logcat" is white
  • "Run" is in color

so guess this is fine. Hope this helps. Best regards

myfknoll avatar Sep 28 '21 16:09 myfknoll

I am running Android Studio Arctic Fox |2020.3.1 Patch 2:

  • "Logcat" is white
  • "Run" is in color

so guess this is fine. Hope this helps. Best regards

For android builds yes, iOs it doenst shoe the colors

carrasc0 avatar Oct 23 '21 18:10 carrasc0

This issue is a bit complex, but we could solve it by changing logger/outputs/console_output.dart to below:

import 'dart:io'; import 'dart:developer' as developer; import 'package:flutter/foundation.dart'; import 'package:idealab/plugins/logger/log_output.dart'; import 'package:idealab/plugins/logger/logger.dart';

const bool _kReleaseMode = kReleaseMode; /// Default implementation of [LogOutput]. /// /// It sends everything to the system console. class ConsoleOutput extends LogOutput { @OverRide void output(OutputEvent event) { if (_kReleaseMode || !Platform.isIOS ) { event.lines.forEach(debugPrint); } else { event.lines.forEach(developer.log); }

} }

yushihang avatar Dec 13 '21 16:12 yushihang