Option to save logs as UTC timestamp

Created on 3 May 2024, about 2 months ago

Problem/Motivation

Servers normally run with UTC time so understanding and working with the files inside the server would help if file name would also be in UTC. For example I'm writing hourly logs and I'd like to write cron script that sends of the previous hour to SumoLogic. It's easy for the script to guess the file name based on current date in Linux, but if it's actually +3, then I'd need to make the script smarter. Also what happens to the script if I change the time in Drupal.

Steps to reproduce

Atm you're getting the file date name whatever it is in configured in Drupal.

Proposed resolution

getFileName() could swtich between date() and gmdate() function if set from the config form or it could be just gmdate()

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ͺπŸ‡ͺEstonia hkirsman

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024