1. 02 Feb, 2022 1 commit
  2. 02 Nov, 2021 1 commit
  3. 08 Oct, 2021 3 commits
  4. 05 Oct, 2021 1 commit
  5. 04 Oct, 2021 1 commit
  6. 01 Oct, 2021 2 commits
  7. 22 Sep, 2021 1 commit
  8. 03 Aug, 2021 1 commit
  9. 08 Jul, 2021 1 commit
  10. 15 Jun, 2021 1 commit
  11. 10 Jun, 2021 1 commit
  12. 19 May, 2021 1 commit
  13. 14 May, 2021 1 commit
  14. 21 Apr, 2021 1 commit
  15. 18 Apr, 2021 1 commit
  16. 17 Apr, 2021 1 commit
  17. 16 Apr, 2021 1 commit
  18. 07 Apr, 2021 1 commit
  19. 06 Apr, 2021 1 commit
  20. 03 Apr, 2021 1 commit
  21. 30 Mar, 2021 1 commit
  22. 13 Mar, 2021 1 commit
  23. 08 Mar, 2021 1 commit
  24. 02 Mar, 2021 1 commit
  25. 24 Feb, 2021 1 commit
  26. 18 Feb, 2021 2 commits
  27. 11 Feb, 2021 2 commits
  28. 27 Jan, 2021 1 commit
  29. 22 Jan, 2021 2 commits
  30. 20 Nov, 2020 1 commit
  31. 29 Oct, 2020 1 commit
  32. 09 Oct, 2020 1 commit
    • James D. Lin's avatar
      [flutter tools] Add a DelegatingLogger class (#67581) · e4206ac5
      James D. Lin authored
      [flutter tools] Add a DelegatingLogger class
      
      Move most of `DelegateLogger` `from test/src/testbed.dart` to
      `lib/src/base/logger.dart` to better formalize the common practice of
      chaining `Logger`s together.  I renamed the class since it isn't
      itself the delegate and to better match the `Delegating...` classes
      from `package:collection`.
      
      Additionally, add a freestanding `asLogger<T>` function to "cast" a
      `Logger` into a matching delegate if possible.  This will allow
      `Logger` chains to be ordered a *bit* more freely (e.g.
      `NotifyingLogger` and `AppRunLogger` will no longer required to be
      at the end of the chain, an unwritten rule that has led to breakage in
      google3).  Chain order still matters since lack of virtual dispatch
      means that parent `Logger`s can never invoke child methods, however.
      
      I made `asLogger<T>` a freestanding function because I didn't want to
      make it part of the `Logger` interface (and I thought that making it
      an extension method might be weird).
      
      Bonus cleanup:
      There no longer appears to be a way to construct an `AppRunLogger`
      with a null parent, so remove all of code paths for that case and
      make the `parent` construction parameter required.
      e4206ac5
  33. 30 Sep, 2020 1 commit
  34. 21 Sep, 2020 1 commit