magento / community-features

Magento Features Development is an Initiative to Allows Community Memebers Join to Development of Magento Features
46 stars 18 forks source link

Add timestamp to cron logging #295

Open seansan opened 3 years ago

seansan commented 3 years ago

Read here

https://devdocs.magento.com/guides/v2.4/config-guide/cli/config-cli-subcommands-cron.html

Cron log from these commands looks like

OUTPUT OUTPUT

and could also look like

Tue, 18 Aug 2020 20:36:47 +0000 OUTPUT Tue, 18 Aug 2020 20:36:47 +0000 OUTPUT

But there is no date time stamp in for example /var/log/cron.log

Description (*)

Can add dt to echo output from ProcessCronQueueObserver Or change the cron config to something like php bin/magento cron:run 2>&1 | sed -e "s/^/$(date -R) /" >> var/log/magento.cron.log

Expected behavior (*)

ts in cron log files

Benefits

you know when something happened

Additional information

m2-assistant[bot] commented 3 years ago

Hi @seansan. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] commented 3 years ago

Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Delta commented 3 years ago

Should be moved to community-features for further discussion Marked as Feature Request cc @sdzhepa

sdzhepa commented 3 years ago

Hello @seansan

Thank you for your feedback and your proposal!

Based on the description and label feature request the issue has been transferred to Magento Feature Request public repo.

Additionally, based on Issue reporting guidelines feel free to raise this topic on the next resources:

Before creating an issue, please do the following: ...

  • Make sure, that information you are about to report is a technical issue, please refer to the Community Forums or Magento Stack Exchange for technical questions, feature requests, etc. These reports are not guaranteed to be processed within GitHub issue tracker.
m2-assistant[bot] commented 3 years ago

Hi @seansan. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this