Initial commit

This commit is contained in:
abrendan
2023-11-30 14:15:19 +00:00
commit e4599df811
5457 changed files with 500139 additions and 0 deletions

33
node_modules/server/plugins/log/index.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
const Log = require('log');
const valid = [
'emergency',
'alert',
'critical',
'error',
'warning',
'notice',
'info',
'debug'
];
// Log plugin
const plugin = {
name: 'log',
options: {
__root: 'level',
level: {
default: 'info',
type: String,
enum: valid
},
report: {
default: process.stdout
}
},
init: ctx => {
ctx.log = new Log(ctx.options.log.level, ctx.options.log.report);
}
};
module.exports = plugin;