cs-450-project / se-phase1

Official repository for the CS450 Software Engineering 2024 Group 4 project.
0 stars 2 forks source link

Add additional logging statements. #50

Closed chloehumphrey closed 1 month ago

chloehumphrey commented 1 month ago

We need to add some more logging statements to the program.

Instead of importing pino to every file, I've created a logger.ts config file. This is setup to output to a file specified in the .env file.

Setting the program up with logging:

  1. Create 'logs' folder in the root directory Add these lines to your '.env' file:
  2. LOG_LEVEL = 1
  3. LOG_FILE = ./logs/app.log Run normally, you'll see the file fill up

LOG_LEVELs: 0 : silent 1: info 2: debug 3: error

WillKissel02 commented 1 month ago

Closed in #58