Module: Legion::Extensions::Logger

Extended by:
Default
Defined in:
lib/legion/extensions/logger.rb,
lib/legion/extensions/logger/version.rb,
lib/legion/extensions/logger/actors/logger.rb,
lib/legion/extensions/logger/runners/logger.rb,
lib/legion/extensions/logger/transport/autobuild.rb,
lib/legion/extensions/logger/transport/queues/logger.rb,
lib/legion/extensions/logger/transport/exchanges/logger.rb

Defined Under Namespace

Modules: Actor, Runners, Transport

Constant Summary collapse

VERSION =
'0.1.0'.freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actorsObject (readonly)

Returns the value of attribute actors.



11
12
13
# File 'lib/legion/extensions/logger.rb', line 11

def actors
  @actors
end

#autobuildObject (readonly)

Returns the value of attribute autobuild.



11
12
13
# File 'lib/legion/extensions/logger.rb', line 11

def autobuild
  @autobuild
end

#default_settingsObject (readonly)

Returns the value of attribute default_settings.



11
12
13
# File 'lib/legion/extensions/logger.rb', line 11

def default_settings
  @default_settings
end

#requirementsObject (readonly)

Returns the value of attribute requirements.



11
12
13
# File 'lib/legion/extensions/logger.rb', line 11

def requirements
  @requirements
end

Class Method Details

.actorsObject



20
21
22
23
24
25
26
# File 'lib/legion/extensions/logger.rb', line 20

def self.actors
  [{
    path:       path + 'actors/logger',
    class:      klass::Actor::Logger,
    group_name: 'logger'
  }]
end

.klassObject



12
13
14
# File 'lib/legion/extensions/logger.rb', line 12

def self.klass
  Legion::Extensions::Logger
end

.lex_methodsObject



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/legion/extensions/logger.rb', line 28

def self.lex_methods
  [{
    namespace:     'legion::extensions::logger::runners::logger',
    queue:         'logger',
    uri:           'logger',
    class_methods: {
      to_stdout: {},
      to_file:   {}
    }
  }]
end

.pathObject



16
17
18
# File 'lib/legion/extensions/logger.rb', line 16

def self.path
  'legion/extensions/logger/'
end

.requirementsObject



40
41
42
# File 'lib/legion/extensions/logger.rb', line 40

def self.requirements
  ['legion-transport']
end