Module: FlatKit

Defined in:
lib/flat_kit.rb,
lib/flat_kit/cli.rb,
lib/flat_kit/xsv.rb,
lib/flat_kit/sort.rb,
lib/flat_kit/error.rb,
lib/flat_kit/input.rb,
lib/flat_kit/jsonl.rb,
lib/flat_kit/merge.rb,
lib/flat_kit/stats.rb,
lib/flat_kit/format.rb,
lib/flat_kit/logger.rb,
lib/flat_kit/output.rb,
lib/flat_kit/reader.rb,
lib/flat_kit/record.rb,
lib/flat_kit/writer.rb,
lib/flat_kit/command.rb,
lib/flat_kit/input/io.rb,
lib/flat_kit/position.rb,
lib/flat_kit/leaf_node.rb,
lib/flat_kit/output/io.rb,
lib/flat_kit/stat_type.rb,
lib/flat_kit/field_type.rb,
lib/flat_kit/input/file.rb,
lib/flat_kit/merge_tree.rb,
lib/flat_kit/xsv/format.rb,
lib/flat_kit/xsv/reader.rb,
lib/flat_kit/xsv/record.rb,
lib/flat_kit/xsv/writer.rb,
lib/flat_kit/command/cat.rb,
lib/flat_kit/field_stats.rb,
lib/flat_kit/output/file.rb,
lib/flat_kit/command/sort.rb,
lib/flat_kit/jsonl/format.rb,
lib/flat_kit/jsonl/reader.rb,
lib/flat_kit/jsonl/record.rb,
lib/flat_kit/jsonl/writer.rb,
lib/flat_kit/command/merge.rb,
lib/flat_kit/command/stats.rb,
lib/flat_kit/event_emitter.rb,
lib/flat_kit/internal_node.rb,
lib/flat_kit/log_formatter.rb,
lib/flat_kit/descendant_tracker.rb,
lib/flat_kit/sentinel_leaf_node.rb,
lib/flat_kit/field_type/date_type.rb,
lib/flat_kit/field_type/null_type.rb,
lib/flat_kit/field_type/float_type.rb,
lib/flat_kit/field_type/guess_type.rb,
lib/flat_kit/field_type/string_type.rb,
lib/flat_kit/sentinel_internal_node.rb,
lib/flat_kit/field_type/boolean_type.rb,
lib/flat_kit/field_type/integer_type.rb,
lib/flat_kit/field_type/unknown_type.rb,
lib/flat_kit/stat_type/nominal_stats.rb,
lib/flat_kit/stat_type/ordinal_stats.rb,
lib/flat_kit/field_type/timestamp_type.rb,
lib/flat_kit/stat_type/numerical_stats.rb

Overview

Public: Top level namespace for the gem

Defined Under Namespace

Modules: DescendantTracker, EventEmitter, Jsonl, Xsv Classes: Cli, Command, Error, FieldStats, FieldType, Format, Input, InternalNode, LeafNode, LogFormatter, Logger, Merge, MergeTree, Output, Position, Reader, Record, SentinelInternalNode, SentinelLeafNode, Sort, StatType, Stats, Writer

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.log_to(destination = $stderr) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/flat_kit/logger.rb', line 21

def self.log_to(destination = $stderr)
  @logger = if destination.is_a?(::IO)
              ::FlatKit::Logger.for_io(destination)
            else
              ::FlatKit::Logger.for_path(destination)
            end
end

.loggerObject



29
30
31
# File 'lib/flat_kit/logger.rb', line 29

def self.logger
  @logger ||= ::FlatKit::Logger.for_io($stderr)
end