Add log level config option

Add an option in the config.js to set the log level.

Log levels like 'error', 'warning' and 'info' need to be implemented.