0.2.12 • Published 2 years ago

@storebox/logger v0.2.12

Weekly downloads
114
License
ISC
Repository
-
Last release
2 years ago

storebox-logger

A logger for all cloud projects:

  • outputs JSON logs,
  • pretty prints logs (optional),
  • sends errors to Sentry (optional),
  • sends logs to Elasticsearch (optional),
  • rate limiting (optional, only for log.rl_info).

Config environment variables

VariableDefault valueDescription
LOGGER_APP-Your app's name
LOGGER_ENV'dev'The computing environment
LOGGER_LEVEL'info'The minimum log level to display
LOGGER_STREAM_ELASTICSEARCHfalseWhether to stream logs to Elasticsearch
LOGGER_ELASTICSEARCH_NODE-The URL of the Elasticsearch node
LOGGER_PRETTY_PRINTfalseWhether to pretty print. SHOULD NOT be used in production
LOGGER_MAX_SERIALIZED_SIZE1024The maximum length of serialized objects
SENTRY_DSN-Sentry's DSN URL
0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.7

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.6

3 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago