0.2.12 • Published 10 months ago

@storebox/logger v0.2.12

Weekly downloads
114
License
ISC
Repository
-
Last release
10 months 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

10 months ago

0.2.11

11 months ago

0.2.10

1 year ago

0.2.7

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.2.6

2 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago