Conversation
BREAKING CHANGE
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/kross/lambda-log/GAZW6kKsbpwfTBtibM6y8UoWHc7x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CAUTION!
This branch and release (
@next) is under heavy development. This exists for testing and anyone who is willing to help out with testing. DO NOT USE IN PRODUCTION!If you do decide to try out this brand new version of LambdaLog, please report any issues you face as I can only catch so much. Any help would be greatly appreciated, especially if you are more versed in TypeScript than I am!
What's new?
This is the next major release of LambdaLog (v4.0.0) which contains many major breaking changes, new features, and TypeScript support.
Breaking Changes
Symbolhas been removed along with any static properties on the classes to retrieve the symbols.debugoption has been removed.levelKeyhas changed from_logLevelto__level.tagsKeyhas changed from_tagsto__tags.addLevel()method from LambdaLog class.isError()andstubError()static methods from the LogMessage class and moved them into utility functions.New Features
leveloption orLAMBDALOG_LEVELenv variable.fatalandtracelog levels.onParseoption that allows for custom parsing of log messages.onCompileoption that allows for custom structuring of the object that is logged to the console.onFormatoption that allows for custom formatting of the logged message. This gives the ability to render log messages in any format, not just JSON. (Disable JSON logging for development #75)cleanformatter that logs a message in a readable format.minimalformatter that logs a message in a readable format without tags and metadata.level,dev, andsilentoptions via environment variables.Fixes
log.options.logHandlerdid not work (Setting log.options.logHandler doesn't seems to work #45).Misc. Changes
What's left?
It has been a pretty large undertaking for me, but one that this package desperately needed. This was my first real dive into TypeScript, so I'm sure there are things than can be written better. If there is anyone with more advanced TypeScript knowledge, I'm in great need of someone who can review the code and suggest any changes or help refactor the code to get this production-ready. (I'll even add you as a maintainer!)
Release Date
As much as I am trying to rush this out the door to get these features in the hands of all you awesome developers/engineers, I'm also limited on time (eg. I'm currently writing this documentation at midnight knowing that I have to wake up at 5:30am). Not only that, but I want to ensure I ship this next version of LambdaLog with performance, features, and stability in mind. I hope this will be the last major version for awhile.
Enough with all of that cheesy sob-story, let's talk about when this will be released, well, what I'm aiming for at this point. I hope to finish up most of my to-do list in the next couple of weeks and try to solicit some outside help for testing/analysis. Once that is complete, I hope to get this released as the latest stable version towards the end of 2021 or at the beginning of 2022. That's not guarantee at this point, but it will definitely be feasible if anyone in the community can help out!