blob: 0f126981209a05491b021075056188b213bda9e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{
let PREFIX = `[${browser.runtime.getManifest().name}]`;
function log(msg, ...rest) {
console.log(`${PREFIX} ${msg}`, ...rest);
}
function debug(msg, ...rest) {
console.debug(`${PREFIX} ${msg}`, ...rest);
}
function error(e, msg, ...rest) {
console.error(`${PREFIX} ${msg}`, ...rest, e, e.message, e.stack);
}
}
|