Story points | 3 |
Tags | logging |
Hard Prerequisites |
|
In part one of this excercise you created two functions. Now you are going to upgrade that program by adding some logging capabilities.
passwordIsOk
returns true, log the following messageUser password is ok
Otherwise:
User password is not ok
The log level of these messages should be debug
.
Make sure that your messages get printed to the standard output / terminal / console.
Take note, we aren’t actually logging the user’s password. In general you want to avoid logging sensitive information.
passwordIsValid
then log the exact error message.error
errors.log
error.log
fileerror.log
file is not in your repoPlease take note: All your previous tests should all pass.