Updated log formatter