@softr/sdk
Version:
The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.
15 lines (14 loc) • 385 B
JavaScript
//#region src/logger.ts
const PREFIX = "[@softr/sdk]";
function emit(method, args) {
if (process.env.NODE_ENV === "production") return;
console[method](PREFIX, ...args);
}
const logger = {
info: (...args) => emit("info", args),
log: (...args) => emit("log", args),
warn: (...args) => emit("warn", args),
error: (...args) => emit("error", args)
};
//#endregion
export { logger };