Sha256: 11c4e3a17d389c2646ff1f5505e8bc86a796ccacf203376b98557f2bd669ec95

Contents?: true

Size: 1.24 KB

Versions: 46

Compression:

Stored size: 1.24 KB

Contents

Beaker uses a set of colors to output different types of messages on to the terminal.

## The Default Color Codes
   If you do not provide any values, the defaults are: [Default colors](https://github.com/puppetlabs/beaker/blob/master/lib/beaker/logger.rb#L85-L95)

## Beaker Color Codes:
In addition, Beaker can support few other colors. List of all colors supported by Beaker:  [Colors Supported by Beaker] (https://github.com/puppetlabs/beaker/blob/master/lib/beaker/logger.rb#L14-L32)

## How to Customize:
Changes to the default options can be made by editing the configuration file.

Here are some examples:

**Eg 1: Changing color of a particular type of message**
Add the following to the hosts file to change the color of `success` messages to `GREEN` and `warning` messages to `YELLOW`. 
To get the color-code corresponding to a color, refer to: [Colors Supported by Beaker] (https://github.com/puppetlabs/beaker/blob/master/lib/beaker/logger.rb#L14-L32)

      HOSTS:
        ...
      CONFIG:
        log_colors:
          success: "\e[01;35m"
          warn: "\e[00;33m"

**Eg 2: Turning off colors.**
The following option in the hosts file will print the whole output in one single color.

      HOSTS:
        ...
      CONFIG:
        color: false

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
beaker-3.34.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.33.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.32.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.31.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.30.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.29.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.28.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.27.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.26.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.25.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.24.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.23.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.22.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.21.1 docs/how_to/change_terminal_output_coloring.md
beaker-3.21.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.20.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.19.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.18.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.17.0 docs/how_to/change_terminal_output_coloring.md
beaker-3.16.0 docs/how_to/change_terminal_output_coloring.md