//Require Module
var log4js = require('log4js');
var logger = log4js.getLogger('Logging');

function sendAliveMail (connection,opt,callback){

    logger.debug('Sending Alive Mail......');

    connection.send(opt,callback);
}

function sendWarningMail(connection,opt,callback){

    logger.debug('Sending Warning Mail......');

    connection.send(opt,callback);
}

module.exports = {
    sendAliveMail:sendAliveMail,
    sendWarningMail:sendWarningMail
}

//Require Module
var log4js = require('log4js');
var logger = log4js.getLogger('Logging');

function sendAliveMail (connection,opt,callback){

/**
 *Receive the connection of mail server, mail option and callback,
 *Then send the alive mail by the these value.
 * */

    logger.debug('Sending Alive Mail......');

    connection.send(opt,callback);
}

function sendWarningMail(connection,opt,callback){

/**
 *Receive the connection of mail server, mail option and callback,
 *Then send the warning mail by the these value.
 * */

    logger.debug('Sending Warning Mail......');

    connection.send(opt,callback);
}

module.exports = {
    sendAliveMail:sendAliveMail,
    sendWarningMail:sendWarningMail
}

Add comment with jsdoc style
 Add comment with jsdoc style
