Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 301 Bytes

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 = true
Crecto::DbLogger.set_handler(file)
You can’t perform that action at this time.