Sha256: 02eea0f59a05fc97b2f2489c7df2883e5e9395435938b9e03143c4eb2d965198

Contents?: true

Size: 529 Bytes

Versions: 13

Compression:

Stored size: 529 Bytes

Contents

#
# Copyright (c) 2018 Patrick Thomas.  All rights reserved.
#
require 'semantic_logger'

module Cayuga
  module Tools
    # Cayuga Tools Loggable
    module Loggable
      def self.included(base)
        SemanticLogger::Loggable.included(base)
        base.class_eval do
          class << self
            alias_method :log, :logger
          end

          alias_method :log, :logger

          def self.log_file
            filenamify('.log')
          end

        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
cayuga-0.0.23 lib/cayuga/tools/loggable.rb
cayuga-0.0.22 lib/cayuga/tools/loggable.rb
cayuga-0.0.21 lib/cayuga/tools/loggable.rb
cayuga-0.0.20 lib/cayuga/tools/loggable.rb
cayuga-0.0.19 lib/cayuga/tools/loggable.rb
cayuga-0.0.18 lib/cayuga/tools/loggable.rb
cayuga-0.0.17 lib/cayuga/tools/loggable.rb
cayuga-0.0.16 lib/cayuga/tools/loggable.rb
cayuga-0.0.15 lib/cayuga/tools/loggable.rb
cayuga-0.0.14 lib/cayuga/tools/loggable.rb
cayuga-0.0.13 lib/cayuga/tools/loggable.rb
cayuga-0.0.12 lib/cayuga/tools/loggable.rb
cayuga-0.0.11 lib/cayuga/tools/loggable.rb