with logger of java