project: Email random inspirational quote - part 4

Tags logging
Hard Prerequisites
IMPORTANT: Please review these prerequisites, they include important information that will help you with this content.
  • PROJECTS: Email random inspirational quote - part 1
  • PROJECTS: Email random inspirational quote - part 2
  • PROJECTS: Email random inspirational quote - part 3

  • Now you are going to upgrade your program by adding some logging capabilities.

    You are expected to use the recommended logging library(or framework) for your programming language:

    • Javascript: Winston
    • Java: log4J-2
    • Python: logging

    Log errors

    Whenever an exception/error is raised or thrown then it should be logged to a file called errors.log.

    Note that even network errors should be logged.

    Log every sent email

    Whenever an email is sent then it there should be an “info” message printed to the terminal. Just log who the email was sent to, don’t log the entire emailed message.

    Gitignore

    Make sure your log files are gitignored.


    RAW CONTENT URL