Skip to content

Instantly share code, notes, and snippets.

View coty's full-sized avatar

Coty Rosenblath coty

View GitHub Profile
@coty
coty / better_logger.rb
Created October 18, 2012 06:25 — forked from indirect/better_logger.rb
Rails 3 logs with severity and PIDs
# You must require this file in application.rb, above the Application
# definition, for this to work. For example:
#
# # Syslog-like Rails logs
# if Rails.env.production?
# require File.expand_path('../../lib/better_logger', __FILE__)
# end
#
# module MyApp
# class Application < Rails::Application
#!/usr/bin/env python
import os
import sys
import boto
import pprint
del_flag = ''
if len(sys.argv) > 1:
del_flag = sys.argv[1]