Skip to content
Snippets Groups Projects
  1. Feb 11, 2023
  2. Jun 23, 2022
  3. Apr 30, 2021
  4. Apr 05, 2021
  5. Apr 02, 2021
  6. Mar 27, 2021
  7. Mar 26, 2021
    • Matt Kline's avatar
      TermLogger: Expose termcolor::ColorChoice · a17ca28f
      Matt Kline authored
      Command line interfaces that write colored output usually give users
      an option to turn it off, or make it automatically shut off when writing
      to a file, pipe, or unsupported terminal. termcolor already has some
      nice machinery to handle this sort of thing with ColorChoice, so expose
      it when creating a TermLogger.
      
      Programmers (such as myself) who use simplelog and want to give users
      this choice only have ugly alternatives. For example, you could fall
      back to a WriteLogger if the user doesn't want color, but then you:
      
      - Lose out on the "mixed" logging mode you get from TerminalMode::Mixed
      
      - Have to reimplement nice ColorChoice::Auto behavior yourself,
        on _top_ of termcolor.
      a17ca28f
    • Matt Kline's avatar
      TermLogger/ConfigBuilder: Make colors optional · d87ea5c5
      Matt Kline authored
      White isn't a good default for those with light terminal screens
      (brighter background, darker text). This is already trivial in
      termcolor, so just allow level colors to be None.
      d87ea5c5
  8. Feb 18, 2021
  9. Dec 18, 2020
  10. Dec 17, 2020
  11. Dec 10, 2020
  12. Jun 07, 2020
  13. May 17, 2020
  14. May 13, 2020
  15. May 12, 2020
Loading