Logging
By default, Crecto does not log anything. To enable, pass any type of IO
to the log handler.
For STDOUT
use:
Crecto::DbLogger.set_handler(STDOUT)
To log to a file, use:
file = File.open("database.log", "w")f.sync = trueCrecto::DbLogger.set_handler(file)