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
I would very much like to use log4js as a logger for OpenTelemetry in the following way:
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