Update logger.js

Change default level (ERROR to WARN)