Simplifies logging through a static class and some IL manipulation.