net4j-log-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.16 • Public • Published

net4j-log-plugin

Log for request


import Net from 'net4j';
import NetLog from 'net4j-log-plugin';

const net = new Net({
  plugins: [
    // Should be placed first
    new NetLog({
      log: {
        info: console.log,
        error: console.error,
      },
    }),
    ...other plugin,
  ]
});

Readme

Keywords

Package Sidebar

Install

npm i net4j-log-plugin

Weekly Downloads

1

Version

1.0.16

License

MIT

Unpacked Size

1.76 kB

Total Files

5

Last publish

Collaborators

  • forthedamn