Skip to content
Webinar - May 13th: How Criteo powers real-time decisions with a reduced footprintRegister now

Logging

The Aerospike Ruby client contains a logging interface useful for debugging and informational purposes. By default, logging is disabled.

Setting the Logger

To enable the log facility, provide an instance of Logger:

# Log to a StringIO instance to make sure no exceptions are raised by our
# logging code.
Aerospike.logger = Logger.new(STDOUT, Logger::DEBUG)

Standard Logger levels control the log verbosity level.

Rails

If the gem is loaded in Rails, the Rails logger is automatically selected.

Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?