Is Gattling logging a bug/issue? how can i stop logging?

620 views
Skip to first unread message

Karl

unread,
Apr 28, 2014, 12:17:58 AM4/28/14
to gat...@googlegroups.com
Hi I notice in the code that Gatling uses  StrictLogging.

This means that the args will be evaluated even if we don't use it. 

Also this log call blocks on writing to the Console... this is massively impacting my Scenario which uses Pause() because pause logs at Info level (should it not be at trace or debug?)

Wouldn't it be better to use Akka's async logging to prevent blocking on write to the console? ( http://doc.akka.io/docs/akka/2.0/scala/logging.html ) ?


Also I'm currently testing using sbt-gatling, any idea how I can set LogLevel to Warn in the mean time so I can run my scenario without Pause spitting out so much log?

Cheers

Karl

Stéphane Landelle

unread,
Apr 28, 2014, 2:23:13 AM4/28/14
to gat...@googlegroups.com
2014-04-28 6:17 GMT+02:00 Karl <karl.ro...@gmail.com>:
Hi I notice in the code that Gatling uses  StrictLogging.

This means that the args will be evaluated even if we don't use it. 


 

Also this log call blocks on writing to the Console...

You can write to another appender, up to you.
 
this is massively impacting my Scenario which uses Pause() because pause logs at Info level (should it not be at trace or debug?)

Maybe, we intend to change those logging levels. Anyway, you're the one who enabled info. Gatling comes with warn.
 

Wouldn't it be better to use Akka's async logging to prevent blocking on write to the console? ( http://doc.akka.io/docs/akka/2.0/scala/logging.html ) ?

IMHO, useless if you don't use logging intensively, which we don't.
 


Also I'm currently testing using sbt-gatling, any idea how I can set LogLevel to Warn in the mean time so I can run my scenario without Pause spitting out so much log?

You probably lack add a logback.xml or logback-test.xml file, right?
 

Cheers

Karl

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Karl

unread,
Apr 28, 2014, 6:00:09 PM4/28/14
to gat...@googlegroups.com
Thanks for the reply,

I really think that logging the fact that the Pause was passing should be at debug or lower in Pause.scala, after all when a user is creating(debugging) his own scenario he may want info comming off his own code, whith Pause logging at info level , my test really slowed down.... try it. write a scenario where a number of users say 1000 do something then pause for 0.5 seconds, in a Loop(10) say... be at info logging level. time your test, then do the same without logging... massive difference eh!? I think that the core components should not spew anything out unless there is a problem.

PS you are right, I don't have a logback.xml or logback-test.xml  :-)  thanks

Cheers

Karl

Stéphane Landelle

unread,
Apr 29, 2014, 2:47:40 AM4/29/14
to gat...@googlegroups.com
For the record, there's already an open issue for cleaning up the logs: https://github.com/excilys/gatling/issues/1766


--
Reply all
Reply to author
Forward
0 new messages