forked from polotek/log4js-syslog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.js
17 lines (13 loc) · 975 Bytes
/
install.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var fs = require('fs');
process.stdout.write("================================================================================\n");
process.stdout.write("= =\n");
process.stdout.write("= Log4js-syslog installing appender =\n");
process.stdout.write("= =\n");
process.stdout.write("================================================================================\n");
//Symlink default strategies
var appender_name = 'syslog';
var path_rel_to_node_modules = '../';
var appenders_path = 'log4js/lib/appenders/';
var appenders_path_rel_to_node_modules = "../../../";
fs.symlinkSync(appenders_path_rel_to_node_modules + 'log4js-syslog' + '/index.js', path_rel_to_node_modules + appenders_path + appender_name + '.js');
process.stdout.write("Log4js-syslog Install: Finished.\n")