Rails integration, refactoring, and support for tagged logging outside of Rails