Initial commit: Upload Checkpoint project
This commit is contained in:
commit
c0e3781244
32 changed files with 6121 additions and 0 deletions
41
utils/logs.js
Normal file
41
utils/logs.js
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue