Class: Alephant::Logger::JSON

Inherits:
Object
  • Object
show all
Defined in:
lib/alephant/logger/json.rb,
lib/alephant/logger/json/version.rb

Constant Summary collapse

VERSION =
"0.0.2"

Instance Method Summary collapse

Constructor Details

#initialize(log_path) ⇒ JSON

Returns a new instance of JSON.



6
7
8
9
# File 'lib/alephant/logger/json.rb', line 6

def initialize(log_path)
  @log_file = File.open(log_path, "a+")
  @log_file.sync = true
end