Duplicate logging in your production environment can occur if both the default logger and your cu...
When I'm using
For example, I might see a log like this
The second json log is my logger, and I think the first log is Effect's logger.
My HttpApi definition is this
HttpMiddleware.logger, I'm seeing my logs show up twice. Once using Effect's built-in logger, and once using my custom logger. Is there a way to prevent it from logging twice? I use Logger.pretty in my dev environment, but I use a custom ProdLogger with Logger.replace(Logger.defaultLogger, ProdLogger) in my prod environment and I'm seeing duplicates only in production.For example, I might see a log like this
The second json log is my logger, and I think the first log is Effect's logger.
My HttpApi definition is this
AppLayer contains the logger.