Skip to content
This repository has been archived by the owner on Oct 13, 2018. It is now read-only.

[Feature request] request logging in the UI #56

Open
treffynnon opened this issue Mar 9, 2018 · 0 comments
Open

[Feature request] request logging in the UI #56

treffynnon opened this issue Mar 9, 2018 · 0 comments

Comments

@treffynnon
Copy link

treffynnon commented Mar 9, 2018

Whilst debugging a recent issue I realised it would be an immense help to have request logging in the UI - something in a similar vein to chrome://net-internals but for requests proxied or served by browsersync.

chrome://net-internals

Currently, you can achieve some request logging with the following:

const browserSyncPort = portfinderSync(3001);
const bs = browserSync.create();
bs.init({
    logLevel: 'debug',
    logConnections: true,
    logFileChanges: true,
    port: browserSyncPort,
    ui: {
        port: portfinderSync(browserSyncPort + 1),
    },
    proxy: {
        target: 'somehost.name',
        middleware: [require('connect-logger')(), webpackDevMiddleware, webpackHotMiddleware],
    },
}, done);

Which is great, but it does get a little hard to follow when you've also got the build process spitting out logs into the same STDOUT.

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

No branches or pull requests

1 participant