updated Log.java method