-
Notifications
You must be signed in to change notification settings - Fork 2
Logger module
Dmitry Usik edited this page Apr 3, 2022
·
6 revisions
A logger module has been created in order to log debug and error messages from a single place. It also makes the messages more readable and informative.
Follow the next steps:
- Create a
logger.tsfile in a module; - Define
LOG_CATEGORY,logandlogError; - Use
logfor debug messages andlogErrorfor error messages.
Use a logger.ts file from the countries module as an example.