Added snippet for Java log