- updated logger to include function interface for easier logging