Logging system now working