Added logging functionality in haas