Class: FlashPlayer::LogFile

Inherits:
Object
  • Object
show all
Defined in:
lib/flashplayer/log_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLogFile

Returns a new instance of LogFile.



16
17
18
19
# File 'lib/flashplayer/log_file.rb', line 16

def initialize
  @logger = $stdout
  super
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



11
12
13
# File 'lib/flashplayer/log_file.rb', line 11

def logger
  @logger
end

#player_pidObject

Returns the value of attribute player_pid.



12
13
14
# File 'lib/flashplayer/log_file.rb', line 12

def player_pid
  @player_pid
end

#result_failureObject

Returns the value of attribute result_failure.



14
15
16
# File 'lib/flashplayer/log_file.rb', line 14

def result_failure
  @result_failure
end

#result_stringObject

Returns the value of attribute result_string.



13
14
15
# File 'lib/flashplayer/log_file.rb', line 13

def result_string
  @result_string
end

Instance Method Details

#tail(thread = nil, player_pid = nil) ⇒ Object



21
22
23
24
# File 'lib/flashplayer/log_file.rb', line 21

def tail(thread = nil, player_pid = nil)
  self.player_pid = player_pid
  tail_path flashlog_path, thread
end