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();
maillogmonitor
1.0.2 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i maillogmonitor
Weekly Downloads
0
Version
1.0.2
License
ISC
Unpacked Size
4.25 kB
Total Files
4