diff options
| author | spv420 <spv@spv.sh> | 2022-07-31 03:00:16 -0400 |
|---|---|---|
| committer | spv420 <spv@spv.sh> | 2022-07-31 03:00:16 -0400 |
| commit | b4c8eae5358953b4b55f6a7df2e8c9836b8d3c13 (patch) | |
| tree | ba1fbe4350d08392a71e79833fefd27c758fc0e5 /src/stage4/log.js | |
| parent | b1e4ed080148f95bc3037ee2e059e944f3b06ff5 (diff) | |
cock
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 |
