Module: Pwrake::Log
- Defined in:
- lib/pwrake/logger.rb
Class Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth_id, *args) ⇒ Object
9
10
11
|
# File 'lib/pwrake/logger.rb', line 9
def method_missing(meth_id,*args)
Rake.application.logger.send(meth_id,*args)
end
|
Class Method Details
.bt(e) ⇒ Object
13
14
15
|
# File 'lib/pwrake/logger.rb', line 13
def bt(e)
"#{e.class}: #{e.message}\n "+(e.backtrace||[]).join("\n ")
end
|
.method_missing(meth_id, *args) ⇒ Object
9
10
11
|
# File 'lib/pwrake/logger.rb', line 9
def method_missing(meth_id,*args)
Rake.application.logger.send(meth_id,*args)
end
|