Sha256: ecc177cbbbd89a088de9b1d3fbe53091c80a476bf2cf4cffd215e18e38be3b97

Contents?: true

Size: 594 Bytes

Versions: 16

Compression:

Stored size: 594 Bytes

Contents

#include "../logging.hpp"

namespace leatherman { namespace test {

    string logging_format_context::get_color(log_level lvl) const
    {
        switch (lvl) {
            case log_level::trace:
            case log_level::debug:
                return cyan;
            case log_level::info:
                return green;
            case log_level::warning:
                return yellow;
            case log_level::error:
            case log_level::fatal:
                return red;
            default:
                return reset;
        }
    }

}}  // namespace leatherman::test

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
facter-3.12.2.cfacter.20181217 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.12.1.cfacter.20181031 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.11.6.cfacter.20181031 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.12.1.cfacter.20181023 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.11.5.cfacter.20181022 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.12.0.cfacter.20181004 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.12.0.cfacter.20181001 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.12.0.cfacter.20180918 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.11.4.cfacter.20180821 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.11.3.cfacter.20180716 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.11.2.cfacter.20180612 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.9.6.cfacter.20180612 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.11.2.cfacter.20180606 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.9.6.cfacter.20180606 ext/facter/leatherman/logging/tests/posix/logging.cc
facter-3.11.0.cfacter.20180319 ext/facter/leatherman/logging/tests/posix/logging.cc
cfacter-3.11.0.rc.20180314 ext/facter/leatherman/logging/tests/posix/logging.cc