Basic logging mechanism for Node.js Lambda Functions and other AWS services, which produces logs in JSON format for easier reading through Cloudwatch Logs.
string[]
for compiled tags returned from LogMessage (fd873e3)log
method to _log
(7317bf5)lambda-log.js
instead (89db707)lambda-log
to ensure the types are generated properly (467c9e4).js
file extensions on imports to support node ESM (2fcf770)module
field to point to esm (1323bf4)src
as a module directory to jest (d268e91)ts-node
as a dev dependency for jest (433cb70).default
in cjs (62da1ec)types
to separate declaration file (c65fd52)main
to point to root index.js file for cjs usage (39a9f43).npmignore
file to help reduce the size of the package (c21bd7f)addLevel()
to LambdaLog (9fde2e3)levelKey
, messageKey
, and tagsKey
(bb5ba70)message.tags
is no longer a property of the LogMessage class that can be directly changed.{}
.LogMessage.symbols
.LambdaLog.symbols
.