iRulesLX Logging Not Working - No log statements appear in /var/log/ltm
I am using iRulesLX, and I'm trying to troubleshoot the webpage my node.js code is producing. To do so, I tried to use logging statements as referenced in this DevCentral article series, but have found they aren't working.
Specifically, I am trying to use statements like these:
console.log("Log message.");
console.error("Error message.");
According to what I've read, STDOUT and STDERR for node.js should be going to /var/log/ltm, and those are the statements you want to use. However, when I look at /var/log/ltm, I don't see any of my log statements. I am trying to figure out how to get them to be logged.
Other important background info / things I've tried:
-
This is 12.1, so the feature in 13 that allows you to redirect logs to a different file doesn't exist here. Everything must go to /var/log/ltm in this version, but my log statements aren't there.
-
I have grep'ed the entire /var/log directory, and confirmed my statements aren't show up in any of the other log files.
-
I've change my DB variables to support logging, like so:
sys db log.sdmd.level { value "debug" }
sys db log.sdmd.stdout { value "enable" }
-
I've tried restarting the sdmd process.
- I've tried reloading/restarting the plugin.
- I've tried a reboot.
None of these things have helped. And I know for a fact my node.js code is running, because it generates the page it is supposed to and I can see it in my browser (the page is slightly wrong, hence the troubleshooting, but I know the code is running). TCL log statements I put before and after the ILX::call command also show up in the /var/log/ltm just fine, so it is really just node.js log statements that won't appear in my log.
Any ideas or help would be much appreciated.