Module: Cauchy
- Defined in:
- lib/cauchy/cli.rb,
lib/cauchy/logging.rb,
lib/cauchy/version.rb,
lib/cauchy/migrator.rb,
lib/cauchy/migration.rb,
lib/cauchy/index_schema.rb,
lib/cauchy/elastic/index.rb,
lib/cauchy/elastic/client.rb,
lib/cauchy/index_schema/normalization.rb
Defined Under Namespace
Modules: Elastic
Classes: Cli, IndexSchema, Migration, MigrationError, Migrator, MultipleIndexAliasError, NoIndexSchemasError, PrettyLogger, UnknownIndexSchemaError
Constant Summary
collapse
- VERSION =
'0.1.3'
Class Method Summary
collapse
Class Method Details
.logger ⇒ Object
48
49
50
51
52
53
54
55
|
# File 'lib/cauchy/logging.rb', line 48
def logger
@logger ||= begin
logger = Logger.new STDOUT
logger.level = Logger::DEBUG
logger.formatter = proc { |_, _, _, msg| "#{msg}\n" }
PrettyLogger.new logger
end
end
|
.logger=(logger) ⇒ Object
44
45
46
|
# File 'lib/cauchy/logging.rb', line 44
def logger=(logger)
@logger = logger
end
|