browserup / browserup-proxy

BrowserUp Proxy is a free utility to watch, test, and manipulate web application network traffic and performance.
https://browserup.com
Apache License 2.0
164 stars 41 forks source link

set log level doesn't work for standalone mode #302

Open Gordiievskyi opened 4 years ago

Gordiievskyi commented 4 years ago

Describe the bug Log level isn't set by yaml as documentation states git docs.

First want to say thanks for doing this great project. Guys I realy need it to debug, I have a very strange errors when part of content is missing but info level do not show anything

To Reproduce Steps to reproduce the behavior:

  1. Download proxy zip

  2. Unpack zip and navigate inside the folder

  3. Navigate to bin folder.

  4. Create conf folder

  5. Create bup-logging.yaml with content:

    Configutation:
    name: Default
    Appenders:
      Console:
        name: Console_Appender
        target: SYSTEM_OUT
    Loggers:
      Root:
        level: warn
        AppenderRef:
          - ref: Console_Appender
      Logger:
        - name: com.browserup.bup
          level: warn
          AppenderRef:
            - ref: Console_Appender
  6. Start you proxy ./browserup-proxy-2.0.1/bin/browserup-proxy

Actual result: [INFO 2020-08-28T14:57:26,184 com.browserup.bup.proxy.Main] - default info level still applied.

Expected behavior no message appears and log level is warn

Screenshots If applicable, add screenshots to help explain your problem.

Please complete the following information:

Additional context Java 1.8.0_231-b11