Made logger follow singleton pattern.

There will always only be one logger because it wraps the console. But
one logger may have many appenders and can therefore support multiple
different logging output patterns.