Create log class with singleton pattern