Closed relandboyle closed 3 months ago
Added a logging library to nudge the project toward a robust, release-ready application. Rather than using console.log(), try using log4js!
import { getLogger } from 'log4js'; const logger = getLogger("[???]");
Replace ??? with the name of the file or method you are logging from.
const logger = getLogger("[Linkta Server]");
logger.debug("Hello World!"); logger.info("Hello World!"); logger.warn("Hello World!"); logger.error("Hello World!"); logger.fatal("Hello World!");
Create a LOG_LEVEL environment variable to override the default "info" level.
Fixes #26
Looks good!!!!
Description
Added a logging library to nudge the project toward a robust, release-ready application. Rather than using console.log(), try using log4js!
Replace ??? with the name of the file or method you are logging from.
Create a LOG_LEVEL environment variable to override the default "info" level.
Fixes #26
Type of change
How Has This Been Tested?
Checklist:
Additional Information: