moved log function into Log.java
added log.error [...] functions