Created
September 14, 2011 19:18
-
-
Save sfgeorge/1217501 to your computer and use it in GitHub Desktop.
Playing around with #ahn_log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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