bnprtr / comet

Create a gleaming trail of application logs
MIT License
2 stars 0 forks source link

feat: alter api and use erlang logger #5

Closed bnprtr closed 4 months ago

bnprtr commented 4 months ago

Significantly refactor the code to take advantage of the erlang logger and still work work fairly closely to and maintain a similar API to the javascript target. This PR is incomplete. There are many features that need to be re-implemented and re-planned, particularly log filters and handlers.

Another significant change is using generic types and the gleam type system for attributes. This should allow for greater flexibility in registered formatters or format wrappers down the road. However, it's doing some trickery to extract Atoms from the underling erlang data structure for records.

4