blob: cb6357fc1c33376efcf0ac378f749ea4279eed0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
function p0laris_log() {
var args = [];
for (var i = 0; i < arguments.length; i++) {
args.push(arguments[i]);
}
if (args.length > 1) {
printf.apply(this, [args[0] + "\n"].concat(args.slice(1)));
} else {
printf.apply(this, [args[0] + "\n"]);
}
syslog.apply(this, [LOG_SYSLOG].concat(args));
return;
}
|