@hellofiremind/logger
v1.1.10
Published
Firemind Logging Tool NPM package distribution
Downloads
3
Readme
Logger
A modules based on the current logging tools that we use throughout our project. This module simply provides a succinct all-round module that we can install into future projects. There are 4 types of logging levels that are available:
Log:
- General logging of events that occur within the application
- Example:
- LOG { run_time: 486.53301095962524, date: 1567625175601 } [ text... ]
Error:
- Logging events for error handling that occur within the application
- Example:
- ERROR { run_time: 486.53301095962524, date: 1567625175601 } [ text... ]
### Info:
- Logging events that indicate a result occurring within the application
- Example:
- INFO { run_time: 486.53301095962524, date: 1567625175601 } [ text... ]
Warn:
- Logging events that indicate a potential for an error that you manually set within your application
- Example:
- WARN { run_time: 486.53301095962524, date: 1567625175601 } [ text... ]
Debug:
- Logging events that indicate a potential for an error that you manually set within your application
- Example:
- DEBUG { run_time: 486.53301095962524, date: 1567625175601 } [ text... ]
Reminder:
- At production, there will be functionality that prevents any level of logging below debugging from being presented in the console/terminal in order to the prevent the pollution of messages.