maillogmonitor
v1.0.2
Published
monitoring mail.log
Downloads
2
Readme
const SSHMailLogMonitor = require('./mailmon'); // Adjust the path as necessary
const serverConfig = {
host: host,
port: 58333,
username: user,
password: pass
};
// Define a callback function to handle parsed log entries
function handleParsedLog(logData) {
console.log(logData);
}
// Create an instance of the monitor with the callback
const logMonitor = new SSHMailLogMonitor(serverConfig, handleParsedLog);
// Start monitoring
logMonitor.startMonitoring();