61 lines
2.2 KiB
JavaScript
61 lines
2.2 KiB
JavaScript
// Module ID: 950
|
|
// Function ID: 951
|
|
// Name: fmt
|
|
// Dependencies: [880, 901]
|
|
// Exports: debug, error, fatal, info, trace, warn
|
|
|
|
// Module 950 (fmt)
|
|
import _INTERNAL_captureSerializedLog from "_INTERNAL_captureSerializedLog" /* 880 */;
|
|
import parameterize from "parameterize" /* 901 */;
|
|
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
|
export const fmt = parameterize.fmt;
|
|
export const debug = function debug(message, attributes, attributes) {
|
|
let obj = attributes;
|
|
if (attributes === undefined) {
|
|
obj = {};
|
|
}
|
|
obj = { level: "debug", message, attributes, severityNumber: "accessibilityRole" };
|
|
_INTERNAL_captureSerializedLog._INTERNAL_captureLog(obj, obj.scope);
|
|
};
|
|
export const error = function error(message, attributes, attributes) {
|
|
let obj = attributes;
|
|
if (attributes === undefined) {
|
|
obj = {};
|
|
}
|
|
obj = { level: "error", message, attributes, severityNumber: "HermesInternal" };
|
|
_INTERNAL_captureSerializedLog._INTERNAL_captureLog(obj, obj.scope);
|
|
};
|
|
export const fatal = function fatal(message, attributes, attributes) {
|
|
let obj = attributes;
|
|
if (attributes === undefined) {
|
|
obj = {};
|
|
}
|
|
obj = { level: "fatal", message, attributes, severityNumber: "e" };
|
|
_INTERNAL_captureSerializedLog._INTERNAL_captureLog(obj, obj.scope);
|
|
};
|
|
export const info = function info(message, attributes, attributes) {
|
|
let obj = attributes;
|
|
if (attributes === undefined) {
|
|
obj = {};
|
|
}
|
|
obj = { level: "info", message, attributes, severityNumber: "accessibilityRole" };
|
|
_INTERNAL_captureSerializedLog._INTERNAL_captureLog(obj, obj.scope);
|
|
};
|
|
export const trace = function trace(message, attributes, attributes) {
|
|
let obj = attributes;
|
|
if (attributes === undefined) {
|
|
obj = {};
|
|
}
|
|
obj = { level: "trace", message, attributes, severityNumber: "accessibilityRole" };
|
|
_INTERNAL_captureSerializedLog._INTERNAL_captureLog(obj, obj.scope);
|
|
};
|
|
export const warn = function warn(message, attributes, attributes) {
|
|
let obj = attributes;
|
|
if (attributes === undefined) {
|
|
obj = {};
|
|
}
|
|
obj = { level: "warn", message, attributes, severityNumber: "id" };
|
|
_INTERNAL_captureSerializedLog._INTERNAL_captureLog(obj, obj.scope);
|
|
};
|