chrome-logger | 7 compliant alternative to the original ChromeLogger | Runtime Evironment library
kandi X-RAY | chrome-logger Summary
kandi X-RAY | chrome-logger Summary
PSR-3 and PSR-7 compliant alternative to the original ChromeLogger for PHP
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Convert a log entry into an array .
- Sanitize data .
- Get header value .
- Extracts the properties of an object .
- Create the log - file .
- Process the request .
chrome-logger Key Features
chrome-logger Examples and Code Snippets
Community Discussions
Trending Discussions on chrome-logger
QUESTION
I have set up ChromeLogger, the browser extension and the backend library, which works fine.
However I am developing an API which I test in Postman not in the browser so I want to see the same debug logs in Postman in the console or somewhere in the response previews.
Is there any way of installing an extension into Postman, the same as the browser extension?
...ANSWER
Answered 2019-Sep-15 at 06:24After reading this article, which explains how the debug logs are encoded in a header, I thought I could just write a post-response "test" in Postman to unpack the header and log it into the Postman console.
This Postman article explains how you can set a "test" globally by editing the test suite itself or folders, so you can make this work pretty much like an extension without having to add it to each request. Click the '...' ellipsis next to the test suite, click Edit, choose the Tests tab and enter the JavaScript code below.
I tried three ways of outputting the data, each with their strengths and weaknesses, as noted in the comments.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install chrome-logger
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page