adding logger

reference #56