0.4.0 • Published 3 years ago
rsyslog-cee v0.4.0
This is a fork of winston-rsyslog-cee, but it sends directly to syslog instead of using winston.
Install
npm install rsyslog-cee
yarn add rsyslog-cee
Options
// import {Logger} from 'rsyslog-cee'; OR
const Logger = require('rsyslog-cee').Logger;
const oLogger = new Logger(
{
service: 'Whatever', // The App Name for Syslog
console: true, // Output logs to console
syslog: true // Output logs to syslog
}
);
const oTimer = oLogger.startTimer('Test');
setTimeout(function() {
oLogger.dt(oTimer);
oLogger.removeSyslog();
}, 1000);
oLogger.d('Debug', {test: 'Debugging'});
oLogger.w('Warn', {test: 'Warning'});
oLogger.i('Info', {test: 'Information'});
oLogger.n('Notice', {test: 'Notification'});
oLogger.e('Error', {test: 'Error!'});
oLogger.c('Critical', {test: 'Critical!'});
oLogger.a('Alert', {test: 'Hey!'});
oLogger.em('Emergency', {test: 'OMGWTF!!'});
0.4.0
3 years ago
0.3.0
4 years ago
0.2.15
4 years ago
0.2.14
4 years ago
0.2.13
4 years ago
0.2.12
4 years ago
0.2.11
4 years ago
0.2.10
5 years ago
0.2.9
5 years ago
0.2.8
5 years ago
0.2.7
5 years ago
0.2.6
5 years ago
0.2.5
5 years ago
0.2.4
5 years ago
0.2.3
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago