Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 414 Bytes
---
logging: |-
Here are some common logging idioms in various languages/frameworks. Please add more! (Keep them alphabetized)
=========================================
Cocoa:
NSLog( @"%d bottles of beer on the wall", 99 );
Python:
import logging
logging.warn("%d bottles of beer on the wall" % 99)
Rails:
RAILS_DEFAULT_LOGGER.error( "%d bottles of beer on the wall" % 99 )