Skip to content

Instantly share code, notes, and snippets.

@sfgeorge
Created September 14, 2011 19:18
Show Gist options
  • Save sfgeorge/1217501 to your computer and use it in GitHub Desktop.
Save sfgeorge/1217501 to your computer and use it in GitHub Desktop.
Playing around with #ahn_log
@call.call.ahn_log 'Calling @call.call.ahn_log with a string'
@call.call.ahn_log { 'Calling @call.call.ahn_log with a block' } # This does not get logged
@call.call.ahn_log.http.info 'Calling @call.call.ahn_log.http.info with a string' # This does not log call context
@call.call.ahn_log.http.info { 'Calling @call.call.ahn_log.http.info with a block' } # This does not log call context
# Yields:
=begin
INFO sipserdevphp5b7d00498: Calling @call.call.ahn_log with a string
INFO http: Calling @call.call.ahn_log.http.info with a string
INFO http: Calling @call.call.ahn_log.http.info with a block
=end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment