elastic-apm-node
Version:
The official Elastic APM agent for Node.js
32 lines (27 loc) • 637 B
JavaScript
/*
* Copyright Elasticsearch B.V. and other contributors where applicable.
* Licensed under the BSD 2-Clause License; you may not use this file except in
* compliance with the BSD 2-Clause License.
*/
;
// Logging utilities for the APM http client.
// A logger that does nothing and supports enough of the pino API
// (https://getpino.io/#/docs/api?id=logger) for use as a fallback in
// this package.
class NoopLogger {
trace() {}
debug() {}
info() {}
warn() {}
error() {}
fatal() {}
child() {
return this;
}
isLevelEnabled(_level) {
return false;
}
}
module.exports = {
NoopLogger,
};