Skip to content

gobline/error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Error Component - Mendo Framework

This component catches the exceptions and errors that weren't handled. It allows you to log errors and to add a custom error handler.

(new Mendo\Error\ErrorCatcher())
    ->setErrorHandler($errorhandler)
    ->setLogger($logger)
    ->setDefaultLogLevel('error')
    ->setLogLevel(500, 'error') // if your exceptions contain codes, you can change the log level accordingly
    ->setLogLevel(404, 'info')
    ->setLogLevel(403, 'info')
    ->setLogLevel(401, 'info');

About

[Obsolete] Error component

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages