cozy-logger
TypeScript icon, indicating that this package has built-in type declarations

1.10.4 • Public • Published

Cozy logger

Logger used by connectors.

It should only be used for connectors and services. For webapps, prefer cozy-minilog for the following reasons:

  • Better readability
  • Logs can be catched correctly in Sentry

Depending on NODE_ENV, it will either :

  • log with colors in a human friendly way switch (NODE_ENV == "developement" || "standalone" || "test")
  • log in JSON for logs to be picked up by the stack (NODE_ENV == "production")

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.10.4
    254
    • latest
  • 1.1.1
    1
    • next

Version History

Package Sidebar

Install

npm i cozy-logger

Weekly Downloads

1,710

Version

1.10.4

License

MIT

Unpacked Size

20.6 kB

Total Files

21

Last publish

Collaborators

  • mycozycloud