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

[Feature request] request logging in the UI #56

Description

@treffynnon

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions