Akka actor logging not writing to file

前端 未结 1 1737
后悔当初
后悔当初 2021-01-04 10:38

I\'m attempting to log to a file rather than stdout.

My application.conf (in src/main/resources/):

akka {
  event-handlers = [\"akka.event.slf4j.Slf4         


        
相关标签:
1条回答
  • 2021-01-04 10:54

    If you are using Akka 2.3.3 as stated in response to my comment, then your config around logging is out of date (using old logging config setup). Try replacing your logging config with:

    akka {
      loggers = ["akka.event.slf4j.Slf4jLogger"]
      loglevel = "DEBUG"
    }
    

    If that does not work let me know and I'll advise on another solution.

    0 讨论(0)
提交回复
热议问题