Class: CoAspects::Aspects::LogCallAspect
- Inherits:
-
Aspector::Base
- Object
- Aspector::Base
- CoAspects::Aspects::LogCallAspect
- Defined in:
- lib/co_aspects/aspects/log_call_aspect.rb
Overview
Generates a log in the Rails logger with the method call, arguments and result.
Examples
class MyClass
aspects_annotations!
_log_call
def method(arg1, arg2)
:success
end
end
MyClass.new.method(:first, :second)
# => [DEBUG] MyClass.method called, args(:first,:second), result: :success