Hi Adam, I think what you are describing is covered in the logging docs: http://doc.akka.io/docs/akka/2.4.1/scala/logging.html#Loggers and http://doc.akka.io/docs/akka/2.4.1/java/logging.html#Loggers
It could probably be more clear though, but the system behaving bad with high logging load and configuring an async appender and dropping DEBUG and INFO messages on high load is mentioned. -- Johan Andrén Typesafe - Reactive apps on the JVM Twitter: @apnylle On Sunday, December 13, 2015 at 5:15:36 PM UTC+1, Adam wrote: > > Hi, > > I sometimes see this issue where I want to switch logs to DEBUG, but due > to the large number of messages the JVM will crash on OutOfMemory which > turns out to be due to the accumulation of logging events. > Most logging frameworks have the ability to drop messages beyond a certain > number and so do Akka unbounded mailboxes. > > Is there a way to achieve this with Akka logging as well? > The behavior of the non blocking unbounded mailbox is what I have in mind > (logging frameworks usually add a warning of some kind telling you that > messages are being dropped, but I can manage without this for now). > > Alternatively, I could just using my logger directly. > It's asynchronous anyway. The only issue with that is that I find the > extra MDC data of actor path very useful when looking at piles of DEBUG > logs. > It makes zeroing in on a single transaction very simple. > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
