41 lines
728 B
JavaScript
41 lines
728 B
JavaScript
const seenConfigs = new Set();
|
|
|
|
export function init(msg) {
|
|
console.log(msg);
|
|
}
|
|
|
|
export function plugin(_name, msg) {
|
|
console.log(msg);
|
|
}
|
|
|
|
export function config(name, msg) {
|
|
if (!seenConfigs.has(name)) {
|
|
console.log(`Config ${msg} for ${name}`);
|
|
seenConfigs.add(name);
|
|
}
|
|
}
|
|
|
|
export function db(msg) {
|
|
console.log(msg);
|
|
}
|
|
|
|
export function server(msg) {
|
|
console.log(msg);
|
|
}
|
|
|
|
export function section(title) {
|
|
console.log(`\n=== ${title.toUpperCase()} ===`);
|
|
}
|
|
|
|
export function warn(_category, msg) {
|
|
console.warn(`WARNING: ${msg}`);
|
|
}
|
|
|
|
export function error(_category, msg) {
|
|
console.error(`ERROR: ${msg}`);
|
|
}
|
|
|
|
// General message function for bullet items
|
|
export function msg(msg) {
|
|
console.log(msg);
|
|
}
|