effect-log icon indicating copy to clipboard operation
effect-log copied to clipboard

Feature request: support for winston

Open jessekelly881 opened this issue 2 years ago • 3 comments

Winston would be a useful addition to this set of loggers. Especially considering its support for and ecosystem of remote loggers like files, dbs, third party services like logtail,, etc. I would be willing to create a PR, but I'm wondering if there is interest in adding support for this to this lib or whether it might be better to make this a separate lib

jessekelly881 avatar May 18 '23 18:05 jessekelly881

I was playing with a solution here and it seems compact enough that it could probably be included in this lib as long as the dep is optional.

jessekelly881 avatar May 19 '23 18:05 jessekelly881

I don't really have a clear vision for this library. I created it solely to cover my use-cases for stdout local and non-local logging. At this point, I'd rather vote for a separate lib, honestly.

I use winston as well. I guess it's a pretty popular logging solution in general, thus it might be worth checking the effect-ts discord and maybe somebody already prepared a solution. If not, I'd be willing to convert this codebase into a monorepo and expose a package to simplify winston integration from here. Unfortunately, I can't really promise it'll happen in a near future.

sukovanej avatar May 21 '23 12:05 sukovanej

Makes sense! I'll ask around. The logger I linked above satisfies my use case and I will probably just use that for the time being. Although, moving it to a lib(wherever that might be) would be helpful. Also, I'm sure there is a better way of implementing this than what I came up with. jaja

jessekelly881 avatar May 22 '23 19:05 jessekelly881