implementation of logging adapter