Video Lesson: Catch and write errors to a log file in Magento

Catch and write errors to a log file in Magento

This is premium content

Only available to enrolled or University students.
Join today to unlock all lessons in this course.

Catch and write errors to a log file in Magento

Learn how to catch exceptions and record errors in log files instead of displaying them to users.


Lesson Content

It’s possible that our repository call can still fail, so let’s wrap this within a try...catch statement. We’ll catch a regular Exception. Since we don’t want errors displayed to the screen on pro...

Premium content

Enroll to unlock the full content and all course materials.

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Enroll in this course for AI tutor access.

Comments

Join the discussion!

Notes

Keep track of what you learn!