We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm following this doc for creating a custom logger. However, I noticed that custom log annotations are not present in the "annotations" field: the map is always empty. When creating a console or file logger (built-in), the custom annotations is present as expected. https://zio.dev/guides/tutorials/create-custom-logger-for-a-zio-application/#creating-a-custom-logger
zio.Runtime.removeDefaultLoggers >>> (SLF4J.slf4j ++ zio.Runtime.addLogger(SnsLogger.LOGGER)) ... val LOGGER: ZLogger[String, Unit] = new ZLogger[String, Unit] { override def apply( trace: Trace, fiberId: FiberId, logLevel: LogLevel, message: () => String, cause: Cause[Any], context: FiberRefs, spans: List[LogSpan], annotations: Map[String, String] // always empty ): Unit = { ... }
The text was updated successfully, but these errors were encountered:
hi @fernanluyano, are you able to create small reproducer? Thanks
Sorry, something went wrong.
No branches or pull requests
I'm following this doc for creating a custom logger. However, I noticed that custom log annotations are not present in the "annotations" field: the map is always empty. When creating a console or file logger (built-in), the custom annotations is present as expected.
https://zio.dev/guides/tutorials/create-custom-logger-for-a-zio-application/#creating-a-custom-logger
The text was updated successfully, but these errors were encountered: