Skip to content

Instantly share code, notes, and snippets.

@torstello
Created January 23, 2014 09:30
Show Gist options
  • Save torstello/8575607 to your computer and use it in GitHub Desktop.
Save torstello/8575607 to your computer and use it in GitHub Desktop.
ruby::logging
> I hate code like:
> logger.log(:debug, "some msg") unless logger.nil?
That is why my debugging or logging routines normally look like this
```
def logger *args
return unless $LOGGING
....
end
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment