//var ts = ts_t.format("%Y-%m-%d %H:%M:%S");
arguments["0"] = "[??INFO??] ("+ts+"): "+orig;
- if(typeof global.repoproxy.loglevel == "undefined" || global.repoproxy.loglevel >= 3) {
+ if(typeof global.repoproxy == "undefined" || global.repoproxy.loglevel >= 3) {
sendLog.apply(this, arguments);
}
}
//var ts = ts_t.format("%Y-%m-%d %H:%M:%S");
arguments["0"] = "[^^DEBUG^^] ("+ts+"): "+orig;
- if(typeof global.repoproxy.loglevel != "undefined") {
- if(global.repoproxy.loglevel >= 3) {
+ if(typeof global.repoproxy != "undefined") {
+ if(global.repoproxy.loglevel >= 4) {
sendLog.apply(this, arguments);
}
}
//var ts = ts_t.format("%Y-%m-%d %H:%M:%S");
arguments["0"] = "[!!WARNING!!] ("+ts+"): "+orig;
- if(typeof global.repoproxy.loglevel == "undefined" || global.repoproxy.loglevel >= 2) {
+ if(typeof global.repoproxy == "undefined" || global.repoproxy.loglevel >= 2) {
sendLog.apply(this, arguments);
}
}
//var ts = ts_t.format("%Y-%m-%d %H:%M:%S");
arguments["0"] = "[**ERROR**] ("+ts+"): "+orig;
- if(typeof global.repoproxy.loglevel == "undefined" || global.repoproxy.loglevel >= 1) {
+ if(typeof global.repoproxy == "undefined" || global.repoproxy.loglevel >= 1) {
sendLog.apply(this, arguments);
}
}