12.1.2 • Published 11 months ago

standard-log-remote v12.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

standard-log-remote

NPM version NPM downloads

Codecov

Visual Studio Code

Sending logs to remote service for standard-log.

Install

npm i standard-log-remote
yarn add standard-log-remote
pnpm add standard-log-remote
rust add standard-log-remote

Usage

import { createStandardLog } from 'standard-log'
import { createRemoteLogReporter } form 'standard-log-remote'

const standardLog = createStandardLog({
  reporters: [createRemoteLogReporter({ url: '...', requestInit: {...} })]
})

const log = standardLog.getLogger('my logger')
log.info('to the remote service!')

Security

Note that logs sent from browser can be intercept an potentially be modified through man-in-the-middle. To mitigate the risk, you can:

  1. Encrypt the message using formatter.
  2. Do not persist these logs or store them with strict space control
  3. Treat them as direct inputs, do not trust any message saved.
  4. Should not return these logs back to the user.
  5. Define convension and strict control of the format of the logs

The raw logs collected should be treated differently then those generated on the server. They should not be returned to the user in the form of log reports, or else your application is subject to Log Injection/Forging and related attacks.

12.1.2

11 months ago

12.0.3

1 year ago

12.0.4

1 year ago

12.0.5

1 year ago

12.0.0

1 year ago

12.1.0

1 year ago

12.0.1

1 year ago

12.1.1

1 year ago

12.0.2

1 year ago

11.5.2

1 year ago

11.5.1

1 year ago

11.5.0

1 year ago

11.4.1

1 year ago

11.4.0

1 year ago

11.3.0

2 years ago

11.2.3

2 years ago