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();

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    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