[FEATURE] Add logger creation to API
[TASK] Use not deprecated method to exit
[TASK] Make use of logging API