{"size": 492, "ext": "js", "max_stars_repo_path": "lib/logger.js", "max_stars_repo_name": "schumannt/RecipeAPI", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lib/logger.js", "max_issues_repo_name": "schumannt/RecipeAPI", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lib/logger.js", "max_forks_repo_name": "schumannt/RecipeAPI", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.4285714286, "max_line_length": 65, "alphanum_fraction": 0.6260162602}
var config = require('../config.js').config;
var log4js = require('log4js');

log4js.configure({
	"appenders": [{
		"type": "file",
		"filename": config.LogFilePath,
		"maxLogSize": config.maxLogSizeBytes,
		"backups": config.maxRotatedLogs,
		"category": "logs"
	},
    {
        type: "console"
    }]
});

var logger = log4js.getLogger('logs');
logger.setLevel(config.logLevel);
// console.log("Log max file" + log.getLogger('max-file-size'));

module.exports = logger;