@hellofiremind/logger

    1.1.10 • Public • Published

    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.

    Keywords

    none

    Install

    npm i @hellofiremind/logger

    DownloadsWeekly Downloads

    48

    Version

    1.1.10

    License

    ISC

    Unpacked Size

    7.23 kB

    Total Files

    11

    Last publish

    Collaborators

    • craigdodd
    • hellofiremindadmin
    • thecjgcjg
    • ahmednuaman