@azure/core-amqp
Version:
Common library for amqp based azure sdks like @azure/event-hubs.
20 lines • 694 B
JavaScript
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { createClientLogger } from "@azure/logger";
import { isObjectWithProperties } from "@azure/core-util";
/**
* The \@azure/logger configuration for this package.
* This will output logs using the `azure:event-hubs` namespace prefix.
*/
export const logger = createClientLogger("core-amqp");
/**
* Logs the error's stack trace to "verbose" if a stack trace is available.
* @param error - Error containing a stack trace.
* @internal
*/
export function logErrorStackTrace(error) {
if (isObjectWithProperties(error, ["stack"])) {
logger.verbose(error.stack);
}
}
//# sourceMappingURL=log.js.map