Method: Uncool::App#log
- Defined in:
- lib/uncool/app.rb
#log(logdir = nil) ⇒ Object
This is the main method for activating hte trace and recording the results.
46 47 48 49 50 51 52 53 54 |
# File 'lib/uncool/app.rb', line 46 def log(logdir=nil) logdir = logdir || [:output] trace.setup at_exit { trace.deactivate logdir ? report.save(logdir) : report.display } trace.activate end |