windows-eventlog-edge
Version:
Module to write to a Windows Event Log (Requires .Net)
16 lines (15 loc) • 363 B
JavaScript
;
module.exports = function normalizeLog(logEntryType) {
switch ((logEntryType || '').toString().toLowerCase()[0]) {
case 'e':
return "Error";
case 'w':
return "Warning";
case 's':
return "SuccessAudit";
case 'f':
return "FailureAudit";
default: // i
return "Information";
}
};