Class: SelectRailsLog::Printer::TextPrinter

Inherits:
BasePrinter show all
Defined in:
lib/select_rails_log/printer/text_printer.rb

Constant Summary collapse

SUFFIX =
".txt"
DATETIME_FORMAT =
"%FT%T.%6N"

Constants included from Constants

Constants::ACTION, Constants::CLIENT, Constants::COMPLETED, Constants::CONTROLLER, Constants::DEBUG, Constants::DEFAULT_OUTPUT, Constants::DURATION, Constants::HTTP_METHOD, Constants::HTTP_STATUS, Constants::ID, Constants::INTERVAL, Constants::LOGS, Constants::MESSAGE, Constants::PARAMETERS, Constants::PATH, Constants::PERFORMANCE, Constants::PERFORMANCE_ACTIVE_RECORD, Constants::PERFORMANCE_ALLOCATIONS, Constants::PERFORMANCE_VIEWS, Constants::PID, Constants::RAW_LOGS, Constants::REQUEST_ID, Constants::SEVERITY, Constants::STARTED, Constants::TIME

Instance Attribute Summary

Attributes inherited from Extension

#options

Instance Method Summary collapse

Methods inherited from BasePrinter

#close, #output_directory?, #output_stdout?, #print, #runnable?

Methods inherited from Extension

option_initializers, #runnable?

Constructor Details

#initialize(options, standard_output, fallback_output: nil) ⇒ TextPrinter

Returns a new instance of TextPrinter.



13
14
15
16
17
# File 'lib/select_rails_log/printer/text_printer.rb', line 13

def initialize(options, standard_output, fallback_output: nil)
  @fallback_output = fallback_output
  @first = true
  super(options, standard_output)
end