feat: Improve error handling in ProfileFactory (#615)
* feat: Improve error handling in ProfileFactory
Refactor the ProfileFactory class to include error handling when validating the log profile class. If an invalid log profile class is provided, a RuntimeException is thrown with a corresponding error message.
Co-authored-by: Deeka Wong
* chore: Add error handling for invalid log writer class in WriterFactory.php
---------
Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com>