Added new-logger function