diff options
Diffstat (limited to 'src/stage4/log.js')
| -rw-r--r-- | src/stage4/log.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/stage4/log.js b/src/stage4/log.js new file mode 100644 index 0000000..cb6357f --- /dev/null +++ b/src/stage4/log.js @@ -0,0 +1,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; +}
\ No newline at end of file |
