pluslog
Ruby simple logger gem
Usage:
require 'pluslog'
class My
+def w
x
end
+def x
y
end
def y
z
end
+def z
end
end
My.new.w
puts Pluslogger.get_pretty_trace(Thread.current)
# enter w [2013-09-08 16:25:04 +0300]
# | enter x [2013-09-08 16:25:04 +0300]
# | | enter z [2013-09-08 16:25:04 +0300]
# | | exit z [2013-09-08 16:25:04 +0300]
# | exit x [2013-09-08 16:25:04 +0300]
# exit w [2013-09-08 16:25:04 +0300]