maillogmonitor

1.0.2 • Public • Published
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();

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i maillogmonitor

    Weekly Downloads

    1

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    4.25 kB

    Total Files

    4

    Last publish

    Collaborators

    • fdcicyber