Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce colored log levels using ansi_term #88

Merged
merged 4 commits into from Nov 11, 2021

Commits on Nov 9, 2021

  1. introduce colored log levels using ansi_term

    This commit adds a possibility to color the log levels using an ansi_term
    crate for this purpose.
    
    The change was intended for WriteLogger in mind, but as this feature will
    be configurable and put in generic logging code, then other loggers can
    benefit as well (if desired).
    
    This way one can easily create a logfile with a similar colored look
    as it is printed real-time on a terminal/console.
    
    Tip: To view such a logfile with colors using 'less' you can use:
    less -R /path/to/logfile
    manio committed Nov 9, 2021
    Copy the full SHA
    1f76fd5 View commit details
    Browse the repository at this point in the history
  2. Add a write_log_enable_colors configuration switch

    This flags controls writing log levels colored in the log.
    manio committed Nov 9, 2021
    Copy the full SHA
    feb3458 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2021

  1. Copy the full SHA
    3e0b336 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2021

  1. Copy the full SHA
    cda7757 View commit details
    Browse the repository at this point in the history