Sha256: b47d749f17715be69aae0ffb2d3e2a9715663bb4ce26a85be6d7704fc54b24a3

Contents?: true

Size: 1.24 KB

Versions: 79

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:

**Ex 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"

**Ex 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

79 entries across 79 versions & 1 rubygems

Version Path
beaker-6.5.0 docs/how_to/change_terminal_output_coloring.md
beaker-6.4.1 docs/how_to/change_terminal_output_coloring.md
beaker-6.4.0 docs/how_to/change_terminal_output_coloring.md
beaker-6.3.0 docs/how_to/change_terminal_output_coloring.md
beaker-6.2.0 docs/how_to/change_terminal_output_coloring.md
beaker-6.1.0 docs/how_to/change_terminal_output_coloring.md
beaker-5.8.1 docs/how_to/change_terminal_output_coloring.md
beaker-4.42.0 docs/how_to/change_terminal_output_coloring.md
beaker-5.8.0 docs/how_to/change_terminal_output_coloring.md
beaker-5.7.0 docs/how_to/change_terminal_output_coloring.md
beaker-4.41.2 docs/how_to/change_terminal_output_coloring.md
beaker-4.41.1 docs/how_to/change_terminal_output_coloring.md
beaker-5.6.0 docs/how_to/change_terminal_output_coloring.md
beaker-4.41.0 docs/how_to/change_terminal_output_coloring.md
beaker-5.5.0 docs/how_to/change_terminal_output_coloring.md
beaker-5.4.0 docs/how_to/change_terminal_output_coloring.md
beaker-5.3.1 docs/how_to/change_terminal_output_coloring.md
beaker-4.40.2 docs/how_to/change_terminal_output_coloring.md
beaker-5.3.0 docs/how_to/change_terminal_output_coloring.md
beaker-4.40.1 docs/how_to/change_terminal_output_coloring.md