Allow logging in production and set the logLevel appropriate for the environment

In development, the default logLevel is 2, so you will see everything by default.

In production, the default logLevel is 1, so you will ony see errors by default.

If a logLevel is already specified, then it is not overwritten.

Also ensured that logging can occur in development.