decord/source/950_fmt.js

62 lines
2.2 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 950
// Function ID: 951
// Name: fmt
// Dependencies: [880, 901]
// Exports: debug, error, fatal, info, trace, warn
// Module 950 (fmt)
2026-08-24 06:08:38 +00:00
import _INTERNAL_captureSerializedLog from "_INTERNAL_captureSerializedLog" /* 880 */;
import parameterize from "parameterize" /* 901 */;
2026-07-29 08:29:29 +00:00
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2026-08-24 06:08:38 +00:00
export const fmt = parameterize.fmt;
2026-07-29 08:29:29 +00:00
export const debug = function debug(message, attributes, attributes) {
let obj = attributes;
if (attributes === undefined) {
obj = {};
}
2026-08-25 06:04:03 +00:00
obj = { level: "debug", message, attributes, severityNumber: "accessibilityRole" };
2026-08-24 06:08:38 +00:00
_INTERNAL_captureSerializedLog._INTERNAL_captureLog(obj, obj.scope);
2026-07-29 08:29:29 +00:00
};
export const error = function error(message, attributes, attributes) {
let obj = attributes;
if (attributes === undefined) {
obj = {};
}
2026-08-12 06:57:52 +00:00
obj = { level: "error", message, attributes, severityNumber: "HermesInternal" };
2026-08-24 06:08:38 +00:00
_INTERNAL_captureSerializedLog._INTERNAL_captureLog(obj, obj.scope);
2026-07-29 08:29:29 +00:00
};
export const fatal = function fatal(message, attributes, attributes) {
let obj = attributes;
if (attributes === undefined) {
obj = {};
}
2026-08-12 06:57:52 +00:00
obj = { level: "fatal", message, attributes, severityNumber: "e" };
2026-08-24 06:08:38 +00:00
_INTERNAL_captureSerializedLog._INTERNAL_captureLog(obj, obj.scope);
2026-07-29 08:29:29 +00:00
};
export const info = function info(message, attributes, attributes) {
let obj = attributes;
if (attributes === undefined) {
obj = {};
}
2026-08-25 06:04:03 +00:00
obj = { level: "info", message, attributes, severityNumber: "accessibilityRole" };
2026-08-24 06:08:38 +00:00
_INTERNAL_captureSerializedLog._INTERNAL_captureLog(obj, obj.scope);
2026-07-29 08:29:29 +00:00
};
export const trace = function trace(message, attributes, attributes) {
let obj = attributes;
if (attributes === undefined) {
obj = {};
}
2026-08-25 06:04:03 +00:00
obj = { level: "trace", message, attributes, severityNumber: "accessibilityRole" };
2026-08-24 06:08:38 +00:00
_INTERNAL_captureSerializedLog._INTERNAL_captureLog(obj, obj.scope);
2026-07-29 08:29:29 +00:00
};
export const warn = function warn(message, attributes, attributes) {
let obj = attributes;
if (attributes === undefined) {
obj = {};
}
2026-08-13 07:00:46 +00:00
obj = { level: "warn", message, attributes, severityNumber: "id" };
2026-08-24 06:08:38 +00:00
_INTERNAL_captureSerializedLog._INTERNAL_captureLog(obj, obj.scope);
2026-07-29 08:29:29 +00:00
};