Class: Alephant::Logger::JSON
- Inherits:
-
Object
- Object
- Alephant::Logger::JSON
- Defined in:
- lib/alephant/logger/json.rb,
lib/alephant/logger/json/version.rb
Constant Summary collapse
- VERSION =
"0.0.2"
Instance Method Summary collapse
-
#initialize(log_path) ⇒ JSON
constructor
A new instance of JSON.
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 |