Class: MobME::Infrastructure::RPC::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mobme/infrastructure/rpc/version.rb,
lib/mobme/infrastructure/rpc/base.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.service_nameObject



3
4
5
# File 'lib/mobme/infrastructure/rpc/base.rb', line 3

def self.service_name
  @service_name
end

Instance Method Details

#loggerObject



7
8
9
10
11
12
13
# File 'lib/mobme/infrastructure/rpc/base.rb', line 7

def logger
  unless Syslog.opened?
    Syslog.open(self.class.service_name, Syslog::LOG_PID | Syslog::LOG_CONS)
  end

  Syslog
end