Enable/Diable Logs funciton