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.



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

def initialize
  @logger = $stdout
  super
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



6
7
8
# File 'lib/flashplayer/log_file.rb', line 6

def logger
  @logger
end

#player_pidObject

Returns the value of attribute player_pid.



7
8
9
# File 'lib/flashplayer/log_file.rb', line 7

def player_pid
  @player_pid
end

#result_failureObject

Returns the value of attribute result_failure.



9
10
11
# File 'lib/flashplayer/log_file.rb', line 9

def result_failure
  @result_failure
end

#result_stringObject

Returns the value of attribute result_string.



8
9
10
# File 'lib/flashplayer/log_file.rb', line 8

def result_string
  @result_string
end

Instance Method Details

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



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

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