Split logger into its own object