Skip to content
Snippets Groups Projects
  1. Apr 05, 2021
  2. Apr 02, 2021
  3. Mar 27, 2021
  4. 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
  5. Feb 18, 2021
  6. Dec 18, 2020
  7. Dec 17, 2020
  8. Dec 10, 2020
  9. Jun 07, 2020
  10. May 17, 2020
  11. May 13, 2020
  12. May 12, 2020
  13. Apr 26, 2020
  14. Apr 25, 2020
  15. Apr 03, 2020
Loading