Crecto
Search…
Logging
By default, Crecto does not log anything. To enable, pass any type of IO to the log handler.
For STDOUT use:
1
Crecto::DbLogger.set_handler(STDOUT)
Copied!
To log to a file, use:
1
file = File.open("database.log", "w")
2
f.sync = true
3
Crecto::DbLogger.set_handler(file)
Copied!
Last modified 3yr ago
Copy link