Fixed logging logic to appropriately map log requests to an associated file based on the current time.