libkernel/src/kernel/log.ts

14 lines
360 B
TypeScript

// log provides a wrapper for console.log that prefixes '[libkernel]' to the
// output.
function log(...inputs: any) {
console.log("[libkernel]", ...inputs);
}
// logErr provides a wrapper for console.error that prefixes '[libkernel]' to
// the output.
function logErr(...inputs: any) {
console.error("[libkernel]", ...inputs);
}
export { log, logErr };