Debug a activity instead of using remote tracer

Is there any way to debug a particular activity instead of using remote tracer. Can be log the execution of activity into pega logs without using log-message method.

@JaywantP

Open that activity to debug
Goto Action → View Java → search “LogHelper” → Copy "Rule_obj_Activity…Action "

Log Helper.png

Create a Log Category → add the loghelper copied above
After save change the logging level to All and select the hours till when you want it to be logged in pega logs