/** @overview nodeunit test case. */

var testResource = require('../../../test_resource'),
    ServerLogger = require('../../../../lib/log/server_logger.js');

exports.setUp = function (done) {
    done();
};

exports.tearDown = function (done) {
    done();
};


exports['Server logger.'] = function (test) {
    var logger = new ServerLogger()
        .console(false)
        .filename(testResource.resolveWorkFile('work_server_logger.log'));
    logger.clusterStarting(4);
    logger.clusterWorkerStart(process.pid);
    logger.clusterWorkerDied(process.pid);
    logger.clusterWorkerRestarting(process.pid);
    logger.serverStarted(3000);
    test.done();
};