Added log4js logging configuration.

Made a implementation for using log4js.
If not set the current logging will be used (consol log)

log4js can also format the console.log
or capture the console.log and write it to a file.