/**
 * Log module.
 * @namespace lib.log
 * @author Taka Okunishi
 *
 */

var prototype = require('./_prototype.js');
/**
 * Define an object property getter to access prototype property.
 * @private
 */
function getPrototypeProperty (key) {
    return {
        enumerable: true,
        get: function () {
            return prototype[key];
        }
    };
}

// Export prototype properties with lazy loading.
Object.defineProperties(exports, {
    levels: getPrototypeProperty('levels'),
    Logger: getPrototypeProperty('Logger')

});


/**
 * Define an object property getter with require function.
 * @private
 */
function getRequire (moduleName) {
    return {
        enumerable: true,
        get: function () {
            return require(moduleName);
        }
    };
}

// Export modules with lazy loading.
Object.defineProperties(exports, {
    BatchLogger: getRequire('./batch_logger'),
    FileLogger: getRequire('./file_logger'),
    ServerLogger: getRequire('./server_logger')

});
