Building a Ractor based logger that will work with non-Ractor compatible code
01-Oct-2020 1334
But we want to share a logger, right? Well, not exactly. What we want is to be able to use the same API to log pieces of information. And that’s the key point here.We can bypass all of our problems quickly. We just need a separate Ractor that will run all the logging for our application with a standard logger compatible API.What do we need to achieve this? Not much. We need to:Create a Ractor that will have the one and only application wide logger.Create API for logging.Connect the Ractor to the Rails.
Building a Ractor based logger that will work with non-Ractor compatible code #ruby #rubydeveloper #rubyonrails #Building #Ractor #based #logger #non-Ractor #compatible #code https://rubyonrails.ba/link/building-a-ractor-based-logger-that-will-work-with-non-ractor-compatible-code