fix logger and add functions for all occasions
Merge branch 'release/logger'