Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 2.04 KB

migrating-to-v2.md

File metadata and controls

20 lines (16 loc) · 2.04 KB

Guide for Migrating from v1 to v2

The v2 release of LogDNA S3 Lambda function integration contains lots of refactoral changes to improve the performance and configuration by introducing @logdna/logger, @logdna/env-config, and eslint-config-logdna. There are several changes in naming and handling environment variables as well. All environment variables are documented here

Renamed Variables

Removed Variables

  • LOGDNA_FREE_SOCKET_TIMEOUT, LOGDNA_MAX_REQUEST_RETRIES, LOGDNA_REQUEST_RETRY_INTERVAL, and LOGDNA_MAX_REQUEST_TIMEOUT were removed because the connection is handled within the logger client.
  • LOGDNA_MAX_LINE_LENGTH was removed because line length is handled on the server-side.
  • LOGDNA_EVENTLOG and LOGDNA_FILELOG were removed because v2 streams only the logs from the files within the specified bucket. You can use AWS CloudTrail Event Logging to stream Object-level operations from S3 buckets. For more information, refer to this article.

New Variables