Skip to content

Compatibility with OpenTelemetry - Missing "verbose" method #1339

@NPellet

Description

@NPellet

I would very much like to use log4js as a logger for OpenTelemetry in the following way:

import opentelemetry, { DiagConsoleLogger, DiagLogLevel } from '@opentelemetry/api'
import log4js from 'log4js'
const serviceLogger = log4js.getLogger('logger')

opentelemetry.diag.setLogger(serviceLogger, DiagLogLevel.DEBUG) // <== Failing here

However, the logger interface is missing the verbose(message: any, ...args: any[]): void; class member signature.

I believe that with this method, log4js would be compatible with otel (at least the current beta specification)

I'd be happy to write a PR if that'd be acceptable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions