Class: SelectRailsLog::Printer::TextPrinter
- Inherits:
-
BasePrinter
- Object
- Extension
- BasePrinter
- SelectRailsLog::Printer::TextPrinter
- 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
Instance Method Summary collapse
-
#initialize(options, standard_output, fallback_output: nil) ⇒ TextPrinter
constructor
A new instance of TextPrinter.
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(, standard_output, fallback_output: nil) @fallback_output = fallback_output @first = true super(, standard_output) end |