As per docs
<http://doc.akka.io/docs/akka/snapshot/java/testing.html#akka-testkit>,
under (Expecting Log Messages)
ote
Be sure to exchange the default logger with the TestEventListener in your
application.conf to enable this function:
1. akka.loggers = [akka.testkit.TestEventListener]
So, this works well when I put it in application.conf.
But since application.con is what gets shipped as application, do we really
want to keep this logger in application.conf?
In order to separate this, I created another config called
test.monitoring.conf, which looks like
include "application.conf"
akka {
loggers = [akka.testkit.TestEventListener]
}
But now when I run my test, they fail, even if in my test I can print that
this Logger is present
SimpleConfigList(["akka.testkit.TestEventListener"])
What's wrong with my approach?
Thanks
+ Harit Himanshu
--
>>>>>>>>>> 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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.