Adding flag to remove logging at compile time.