added function new-logger