FoxxMD / context-mod

an event-based, reddit moderation bot built on top of snoowrap and written in typescript
https://contextmod.dev
MIT License
49 stars 11 forks source link

Refactor logger labelling to be less cumbersome and more descriptive of context #3

Closed FoxxMD closed 3 years ago

FoxxMD commented 3 years ago

Right now would need to pass all prefix content down from config builder all the way to action/rule if I want to see the context for some log statement on write. Need to refactor this so a logger can be created from a pool or something with prefix content already built. Basically make it more stateless to create a logger.