Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
250 views
in Technique[技术] by (71.8m points)

php - Laravel custom schedule logs

My problem is simple, I would like to custom the format of the string that is written in my schedule.log by the laravel scheduler

Example, in my schedule.log, logs are like this:

No scheduled commands are ready to run.

I would like it to be like this:

[2020-12-22 10:24:52] INFO: No scheduled commands are ready to run.

Do you have any idea how I can do it ?

Thank you very much !


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

this automatically does the format of what you are looking for, as laravel handles the date for you.

Log::info("TEXT HERE");

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...