ruby on rails - Grouping Job logs with logger (manual flushing) -


until connect log service manage me, need hold logs , flush them output file after job has completed (or reach similar quick strategy group pack of log together, preventing as possible other processes appending in-between else).

so want (in activejob)

around_perform   logger.hold   yield   logger.flush end 

apparently there activesupport::bufferredlogger once upon time, there's deprecation warning saying it's replaced activesupport::logger doesn't seem respond autoflushing=false

so how should rails 5.0 ??

of course know there services can me, until find right one, need quick "dirty" solution requires few lines of code ^^"


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -