Corrected save method in Logger class