There is probably a more convenient (automatic) way to do it without having 
you directly deal with the application.conf file when running tests. 

On your test, when constructing the TestKit you can specify logs to be off 
like this: 

class MySpec extends TestKit(ActorSystem("MySpecActorSystem", 
ConfigFactory.parseString("akka.loglevel = OFF"))) { ... }

Cheers ! 

On Tuesday, January 28, 2014 3:15:29 PM UTC+1, Björn Hachmann wrote:
>
> Hi all,
>
> I have configured a logLevel of INFO in my application.conf:
>
> akka {
>   loglevel = INFO
> }
>
> Nevertheless when running the tests (with sbt) I see messages of 
> debug-Level, eg:
>
> [DEBUG] [01/28/2014 15:02:13.493] [ScalaTest-run] 
> [EventStream(akka://EvaluatorSpec)] logger log1-Logging$DefaultLogger 
> started
> [DEBUG] [01/28/2014 15:02:13.495] [ScalaTest-run] 
> [EventStream(akka://EvaluatorSpec)] Default Loggers started[DEBUG] 
> [01/28/2014 15:02:14.434] [EvaluatorSpec-akka.actor.default-dispatcher-4] 
> [akka://EvaluatorSpec/user/$a] compiled evaluator script: [...]
>
> I am surely missing something, but cannot figure out what causes those 
> messages. As in other tests the logging becomes very verbose I would like 
> to limit messages to info-Level.
>
> What am I missing? Thank you!
>
> Cheers,
> Björn
>
>
>

-- 
>>>>>>>>>>      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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to