hi Thomas,

exactly, somewhere DEBUG level is set and only traffic log entries appear, 
huge amount of them, making logs useless and setting the following in 
GebConfig







*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)*

is not considered or used at all.

where is DEBUG set and where exactly did you create the mentioned 
logback.xml?
could you please post details of the file content too?

after setting this do you get selenium's logs?

thank you!


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
>
>
> Am 29.04.2021 22:01 schrieb Marcin Erdmann:
> > Hi,
> > 
> > This is more of a Selenium question than a Geb question, to be honest,
> > you might be provided with better support in a Selenium specific
> > channel. This also might be driver/browser specific.
> > 
> > FWIW, this is what we successfully use in our GebConfig.groovy file on
> > my project for capturing javascript console logging with Chrome and
> > Selenium 3.14.0:
> > 
> > def capabilities = DesiredCapabilities.chrome()
> > def logPrefs = new LoggingPreferences()
> > logPrefs.enable(BROWSER, Level.INFO)
> > capabilities.setCapability(LOGGING_PREFS, logPrefs)
> > 
> > def driver = new ChromeDriver(capabilities)
> > 
> > We then use the following code in a geb.report.Reporter implementation
> > to extract these logs:
> > 
> > 
> reportState.browser.config.driver.manage().logs().get(LogType.BROWSER).all
> > 
> > On Tue, Apr 27, 2021 at 11:44 AM [email protected]
> > <[email protected]> wrote:
> > 
> >> hi,
> >> do you know how and where to configure logging for logging for Geb
> >> 4.0 and Selenium 4.0.0-beta-2?
> >> 
> >> I set the following in GebConfig
> >> 
> >> LoggingPreferences logPrefs = new LoggingPreferences()
> >> logPrefs.enable(LogType.BROWSER, Level.FINE)
> >> logPrefs.enable(LogType.PERFORMANCE, Level.INFO)
> >> caps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs)
> >> 
> >> and I get only traffic logs, everything is logged there, so many
> >> traffic logs nothing else can be seen.
> >> 
> >> how do I set logging to get chrome console logs and "usual" logs
> >> (which show how the script behaves)?
> >> 
> >> thank you!
> >> 
> >> --
> >> 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/f5a0cd40-21de-4cd3-966e-105f70beeb14n%40googlegroups.com
> >> [1].
> > 
> > --
> > 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%2B52dQTXqJ1guqNNm2wMMyo1q%3D_5xO_D9EwzWAKAg5ApCmZo4g%40mail.gmail.com
> > [2].
> > 
> > 
> > Links:
> > ------
> > [1]
> > 
> https://groups.google.com/d/msgid/geb-user/f5a0cd40-21de-4cd3-966e-105f70beeb14n%40googlegroups.com?utm_medium=email&amp;utm_source=footer
> > [2]
> > 
> https://groups.google.com/d/msgid/geb-user/CA%2B52dQTXqJ1guqNNm2wMMyo1q%3D_5xO_D9EwzWAKAg5ApCmZo4g%40mail.gmail.com?utm_medium=email&utm_source=footer
>

-- 
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/b69a500d-5d6e-495f-a85b-7445cdebbb57n%40googlegroups.com.

Reply via email to