Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Modifier: har.Logger #256

Open
caccialdo opened this issue Jul 18, 2018 · 1 comment
Open

New Modifier: har.Logger #256

caccialdo opened this issue Jul 18, 2018 · 1 comment
Assignees

Comments

@caccialdo
Copy link

Would allow customising the har logger via the REST API and leverage the existing bodyLogging and postDataLogging options currently only accessible when martian is used as a library.

{
  "har.Logger": {
    "scope": ["request", "response"],
    "bodyLogging": false,
    "postDataLogging": false
  }
}

Use case: avoid transmitting heavy request/response bodies when they are not necessary for what's being tested. For e.g. when testing the HAR logs in a separate process that communicates with martian over the REST api.

@caccialdo
Copy link
Author

To add a bit more context, this new modifier would bring Martian on par with Browsermob-proxy where the user can toggle the captureHeaders, captureCookies, captureContent and captureBinaryContent flags when requesting the creation of a new proxy.

Cf. https://github.com/lightbody/browsermob-proxy/blob/master/README.md#rest-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants