-
Notifications
You must be signed in to change notification settings - Fork 1
Logging
kaythinks edited this page Apr 6, 2020
·
2 revisions
Logging is quite important in any framework, this framework has a Logger class with two methods for logging namely,
public static function message(string $input) : null
This method is for logging information e.g Logger::message('Data is present')
public static function error(\Exception $e)
This method is for logging errors by passing the exception object as an argument e.g Logger::error($e). This method gives a very detailed information about the error type.
Made with love in Naija