added 0 log handler
created get logs function