elf-logging

1.1.0 • Public • Published

Elf Logging

Elf Logging is a logging and error catching utility for the Elf- suite. If an error occurs while executing the contents of a controller method, it catches that error, logs it, and returns a 500 status code to the client. To use, simply decorate a controller method with @Logger(). Define a logging mode by setting the ELF_LOG_MODE environment variable to either console or file. Setting log mode to file writes to a elf.log file in the root folder of your project.

Readme

Keywords

none

Package Sidebar

Install

npm i elf-logging

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

12.9 kB

Total Files

7

Last publish

Collaborators

  • christiandrey