added  sample of logging