vmi / selenese-runner-java

Selenium IDE native format (selenese and side) interpreter.
Other
140 stars 83 forks source link

disable debug logging #208

Open tomschut opened 8 years ago

tomschut commented 8 years ago

Hi,

I'm wondering if it's possible to disable debug logging in the runner. I'm running the jar with maven in a build task but don't see a way to disable logging.

Kind regards,

Tom

vmi commented 8 years ago

Hi,

A) Does the "debug logging" mean the DEBUG level output by a log library? B) Or does it mean the following message?

[2016-07-13 08:16:29.817 +09:00] [INFO] Start: TestCase[issue114_2] (src/test/resources/selenese/issue114_2.html)
[2016-07-13 08:16:29.818 +09:00] [INFO] baseURL: http://localhost
[2016-07-13 08:16:29.840 +09:00] [INFO] <1> Command#1: open("/nested_frame.html")
[2016-07-13 08:16:30.102 +09:00] [INFO] - [Success] URL: [http://localhost/nested_frame.html] / Title: [Nested Frame Test]
vmi commented 7 years ago

Hi,

Can you answer the above question?

shenlian8 commented 7 years ago

Hi, I'd like to disable the DEBUG level output. Can you please help? Thanks!

Lian

vmi commented 7 years ago

Hi, @shenlian8

I need information on "DEBUG level output". Please provide actual output.

shenlian8 commented 7 years ago

Hi, I have it. Just copy the logback-test.xml (under src/test/resources) to logback.xml under src/main/resources to your own project.

vmi commented 7 years ago

Hi, @shenlian8

src/test/resources/logback-test.xml is for unit testing of Selenese Runner itself. I do not consider this file to be used by Selenese Runner users. If you want to use the logger configuration file in the source code, please use src/shade/resources/logback.xml instead.

vmi commented 7 years ago

It is additional information. If you add the following setting to logback.xml, the DEBUG log is not output.

<configuration>
  ...
  <logger name="jp.vmi.selenium" level="INFO"/>
  <logger name="jp.vmi.selenium.selenese.inject" level="OFF" />
  ...
</configuration>
shenlian8 commented 7 years ago

Thanks a lot!

2017年4月9日 上午4:55,"Motonori IWAMURO" notifications@github.com写道:

It is additional information. If you add the following setting to logback.xml, the DEBUG log is not output.

... ...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vmi/selenese-runner-java/issues/208#issuecomment-292760182, or mute the thread https://github.com/notifications/unsubscribe-auth/AJJWn68EqIvN7DI-2l_Q19a0Mr7WNQbKks5ruEiYgaJpZM4Je9hi .