On Friday, April 30, 2021 at 9:10:44 AM UTC+2 [email protected] wrote:

> Not sure if I am facing the same issue, but with update to Geb 4.0, and
> subsequent fine-tuning of logging dependencies
> (removing SLF4J-Implementation), we would get a lot of logging output,
> because Logback, which is pulled in by Geb,
> apparently logs at DEBUG level by default.
>
> I solved this problem for us, by creating a basic logback.xml
> configuration file, setting the"root level" to INFO.
>
> Cheers,
> Thomas


Yes, logback has unintentionally leaked as a dependency of Geb 4.0. It was
never a conscious decision to include it - in my opinion libraries should
not bring SLF4J implementations (like logback) and it should always be up
to consumer to select one if they so wish. In Geb's case logback is a
transitive dependency of org.jodd:jodd-lagarto. This has been rectified in
Geb 4.1 and logback is no longer a dependency - it's excluded
from org.jodd:jodd-lagarto transitive dependencies in Geb's pom file.

On Fri, Apr 30, 2021 at 9:17 AM [email protected] <[email protected]>
wrote:

> great, thank you!
>
> I set this as you wrote, traffic log entries do not appear anymore, but
> why is this
>
> *LoggingPreferences logPrefs = new LoggingPreferences()*
>
>
>
>
>
> *logPrefs.enable(LogType.BROWSER,
> Level.ALL)logPrefs.enable(LogType.CLIENT,
> Level.SEVERE)logPrefs.enable(LogType.DRIVER,
> Level.SEVERE)logPrefs.enable(LogType.PERFORMANCE,
> Level.ALL)logPrefs.enable(LogType.SERVER,
> Level.SEVERE)caps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs)*
>
> ignored at all?
>
> where does this need to be set?
>

These are two separate things. Logback, on which Thomas has picked up, is
used on the client side (inside of your test JVM) and the traffic log
entires are made by Selenium in your tests. The configuration that you are
using is for logging inside of the browser and if you want these logs
logged on the client side then you actually need to retrieve as shown in
the SO answer at https://stackoverflow.com/a/25431419/1856764 and then log
it.

-- 
You received this message because you are subscribed to the Google Groups "Geb 
User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/geb-user/CA%2B52dQQJixHtzw7X53hC_j8ffwD_YzxopUUUXh9QPDqizhDf4w%40mail.gmail.com.

Reply via email to