maddsua / lambda

HTTP and Websocket server library
MIT License
2 stars 0 forks source link

Fix logs fr this time #110

Closed maddsua closed 9 months ago

maddsua commented 9 months ago
  1. Remove current bs console
  2. Add a single thread safe console without bells and whistles
  3. Move context-aware console to middleware (kinda like in lambda lite)
  4. Create helper function to log common evens from both server handlers
  5. Remove date logging, log stream and all of that. External logging tools should be used instead
maddsua commented 9 months ago

on the other hand, having a readable log queue makes sense to just keep things versatile...

maddsua commented 9 months ago

bullshit features.. fucking hell I'm reinventing the wheel too hard again

maddsua commented 9 months ago

just unify logs under the hood and use a global logger. for serverless requests a scoped console can always be added later

maddsua commented 9 months ago

also the "console" thing is bullshit too, better make a wrapper for printf or something that doesn't smell like fucking javascript