-
Notifications
You must be signed in to change notification settings - Fork 2
Logger module
Dmitry Usik edited this page Mar 28, 2021
·
6 revisions
A logger module was 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.ts
file in a module; - Define
LOG_CATEGORY
,log
andlogError
; - Use
log
for debug messages andlogError
for error messages.
Use a logger.ts file from the countries
module as an example.