Skip to content

Monkey-patch for Winston3 publishes too much #115

@EJBroeders

Description

@EJBroeders

The Winston patch publishes on the diagnostic channel all logs that Winston collects. I would expect as an end-user that only messages above the configured Winston log level get published.

Current situation:

import * as appInsights from 'applicationinsights';
import * as winston from 'winston';

const logger = winston.createLogger({
  level: 'warn',
});

appInsights.setup();
appInsights.start();

logger.debug('This should not trigger a publish on the diagnostic-channel - but it does');

Links:

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