Logger client of Taotie, transport logs by stdout and udp.
npm install @taotiejs/logger
const logger = require('@taotiejs/logger');
logger.configuer({
project: 'PROJECT NAME',
console: {
level: trace,
},
udp: process.env.NODE_ENV == 'production',
serializers: {},
recognizer(logArguments) {
return logArguments;
}
});
You may use @taotiejs/server
for log collecting and querying.