Sha256: 6003206178106a2aff0ced4f2dff857626b7518b6478bb4177e187ef7739a0a9

Contents?: true

Size: 509 Bytes

Versions: 12

Compression:

Stored size: 509 Bytes

Contents

require 'logging'

Logging.color_scheme( 'bright',
    :levels => {
        :info  => :green,
        :warn  => :yellow,
        :error => :red,
        :fatal => [:white, :on_red]
    },
    :date => :blue,
    :logger => :cyan,
    :message => :magenta
)

Logging.appenders.stdout(
    'stdout',
    :layout => Logging.layouts.pattern(
        :pattern => '[%d] %-5l %c: %m\n',
        :color_scheme => 'bright'
    )
)

$logger = Logging.logger['UE']
$logger.add_appenders 'stdout'
$logger.level = :error

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ue-ruby-sdk-1.1.13 lib/utilities/UELogger.rb
ue-ruby-sdk-1.1.12 lib/utilities/UELogger.rb
ue-ruby-sdk-1.1.9 lib/utilities/UELogger.rb
ue-ruby-sdk-1.1.8 lib/utilities/UELogger.rb
ue-ruby-sdk-1.1.7 lib/utilities/UELogger.rb
ue-ruby-sdk-1.1.6 lib/utilities/UELogger.rb
ue-ruby-sdk-1.1.5 lib/utilities/UELogger.rb
ue-ruby-sdk-1.1.3 lib/utilities/UELogger.rb
ue-ruby-sdk-1.1.2 lib/utilities/UELogger.rb
ue-ruby-sdk-1.1.1 lib/utilities/UELogger.rb
ue-ruby-sdk-1.1.0 lib/utilities/UELogger.rb
ue-ruby-sdk-1.0.0 lib/utilities/UELogger.rb