updated LogService.java